/* TradeAnalyzer.Pro - Professional Navigation System */

/* Navigation Styles - Fullscreen Professional Design */
:root {
    --navbar-height: 70px;
    --navbar-bg: rgba(26, 44, 56, 0.98);
    --navbar-scrolled-bg: rgba(26, 44, 56, 1);
    --text-light: #ffffff;
    --accent-color: #3498db;
    --border-radius: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Fullscreen Navbar */
.navbar-pro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #1a1f2e;
    color: white;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 70px;
    display: flex;
    align-items: center;
}

.navbar-pro.scrolled {
    background: var(--navbar-scrolled-bg);
    box-shadow: var(--shadow-lg);
}

/* Fullscreen Container */
.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    height: 100%;
    position: relative;
}

/* Brand Section - Left Side */
.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 700;
    font-size: 1.4rem;
    padding-left: 20px;
    margin-right: auto;
}

.navbar-brand:hover {
    color: var(--accent-color);
}

.navbar-logo {
    width: 67.5px;
    height: 67.5px;
    margin-right: 12px;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.navbar-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.navbar-title {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

/* Navigation Menu - Center */
.navbar-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

/* Menu Items */
.navbar-item {
    position: relative;
}

.navbar-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.navbar-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-link:hover {
    color: var(--accent-color);
    background: rgba(52, 152, 219, 0.1);
}

.navbar-link:hover::before {
    width: 80%;
}

.navbar-link.active {
    color: var(--accent-color);
    background: rgba(52, 152, 219, 0.15);
}

/* Dropdown Styles */
.navbar-dropdown {
    position: relative;
}

.dropdown-menu-pro {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(44, 62, 80, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 10000;
    padding: 8px 0;
    margin-top: 8px;
}

.navbar-dropdown:hover .dropdown-menu-pro,
.dropdown-menu-pro:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown Items */
.dropdown-item-pro {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.dropdown-item-pro:hover {
    background: rgba(52, 152, 219, 0.15);
    color: var(--accent-color);
}

.dropdown-item-pro i {
    margin-right: 12px;
    width: 16px;
    text-align: center;
}

/* Dropdown Divider */
.dropdown-divider-pro {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
    border: none;
}

/* Auth Section - Right Side */
.navbar-auth {
    display: flex;
    align-items: center;
    margin-left: auto;
    padding-right: 20px;
}

/* Sign In Button */
.btn-signin {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--accent-color), #2980b9);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-signin:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    color: white;
    text-decoration: none;
}

.btn-signin i {
    margin-right: 8px;
}

/* User Avatar Section */
.user-avatar-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: auto;
    padding-right: 20px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #3498db;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.user-avatar:hover {
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-avatar-letter {
    font-size: 16px;
    font-weight: 600;
}

/* User Menu Dropdown */
.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
    margin-top: 10px;
    overflow: hidden;
}

.user-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* User Menu Header */
.user-menu-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.user-menu-name {
    font-weight: 600;
    color: #333333;
    margin: 0;
    font-size: 0.95rem;
}

.user-menu-email {
    color: #666666;
    font-size: 0.8rem;
    margin: 4px 0 0 0;
}

/* User Menu Body */
.user-menu-body {
    padding: 8px 0;
}

.user-menu-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #333333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.user-menu-item i {
    margin-right: 12px;
    width: 16px;
    text-align: center;
    color: #666666;
}

.user-menu-item:hover {
    background: #f0f7fd;
    color: #3498db;
}

.user-menu-item:hover i {
    color: #3498db;
}

/* Logout Special Styling */
.user-menu-item.logout {
    border-top: 1px solid #e0e0e0;
    margin-top: 4px;
    color: #e74c3c;
}

.user-menu-item.logout i {
    color: #e74c3c;
}

.user-menu-item.logout:hover {
    background: #fef0f0;
}

.user-menu-item.logout:hover i {
    color: #e74c3c;
}

/* Sign In Modal */
.signin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.signin-modal.show {
    opacity: 1;
    visibility: visible;
}

.signin-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    transform: scale(0.9);
    transition: var(--transition);
}

.signin-modal.show .signin-content {
    transform: scale(1);
}

.signin-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    position: relative;
}

.signin-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.signin-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.signin-logo {
    width: 90px;
    height: 90px;
    margin: 0 auto 1rem;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.signin-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.signin-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.signin-subtitle {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.signin-body {
    padding: 0 2rem 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control-pro {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: #f8f9fa;
}

.form-control-pro:focus {
    outline: none;
    border-color: var(--accent-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-control-pro.error {
    border-color: #e74c3c;
    background: #fdf2f2;
}

.btn-signin-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent-color), #2980b9);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 1rem;
}

.btn-signin-submit:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-1px);
}

.signin-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.signin-link {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.signin-link.forgot {
    color: #f39c12;
}

.signin-link.forgot:hover {
    color: #e67e22;
}

.signin-link.signup {
    color: #27ae60;
}

.signin-link.signup:hover {
    color: #229954;
}

/* Mobile Toggle */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.navbar-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar-container {
        padding: 0;
    }
    
    .navbar-brand {
        padding-left: 15px;
    }
    
    .navbar-auth {
        padding-right: 15px;
    }
    
    .user-avatar-wrapper {
        padding-right: 15px;
    }
    
    .navbar-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        width: 100%;
        background: var(--navbar-scrolled-bg);
        padding: 20px 0;
        gap: 0;
        opacity: 0;
        visibility: hidden;
        max-height: calc(100vh - var(--navbar-height));
        overflow-y: auto;
        transform: translateX(0);
    }

    .navbar-toggle {
        display: block;
    }

    .navbar-auth {
        gap: 0.5rem;
    }

    .btn-signin {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Error Animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.error-shake {
    animation: shake 0.5s ease-in-out;
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.spinner {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Verbessere spezifisch für Trading Tools (Screener) */
body[data-page="trading-tools"] .navbar-pro {
    z-index: 1050;
}

body[data-page="trading-tools"] .navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
}

body[data-page="trading-tools"] .navbar-auth {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1060;
}

body[data-page="trading-tools"] .user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    z-index: 1070;
}

/* Responsive Anpassungen */
@media (max-width: 992px) {
    body[data-page="trading-tools"] .navbar-auth {
        right: 70px;
    }
} 