/* Header Styles for Rent Management App */

/* App Header - Redesigned to match rent page */
.app-header {
    background: linear-gradient(135deg, #074173 0%, #38a4c8 100%);
    color: white;
    padding: 1.2rem 1rem;
    box-shadow: 0 4px 20px rgba(7,65,115,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.app-logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(5px);
}

.app-logo:hover {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.app-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    position: relative;
}

.profile-btn {
    background: rgba(255,255,255,0.25);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    color: white;
}

.profile-btn i {
    color: white;
    font-size: 1.2rem;
}

.profile-btn:hover {
    background: rgba(255,255,255,0.4);
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}


/* Profile Dropdown */
.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    border: 1px solid rgba(255,255,255,0.2);
}

.profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    color: #333;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.dropdown-item:first-child {
    border-radius: 16px 16px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 16px 16px;
}

.dropdown-item i {
    color: #667eea;
    width: 20px;
    font-size: 1.1rem;
}


/* Responsive Design */
@media (max-width: 768px) {
    .app-header {
        padding: 1rem;
    }

    .app-title {
        font-size: 1.3rem;
    }

    .app-logo {
        width: 45px;
        height: 45px;
        border-radius: 10px;
    }

    .profile-btn {
        width: 42px;
        height: 42px;
    }

    .profile-dropdown {
        right: 0.5rem;
        min-width: 180px;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 0.5rem;
    }

    .app-title {
        font-size: 1.1rem;
    }

    .app-logo {
        width: 40px;
        height: 40px;
        border-radius: 8px;
    }

    .profile-btn {
        width: 38px;
        height: 38px;
    }
}

/* Animation for header load */
.header-fade-in {
    animation: headerSlideDown 0.6s ease-out;
}

@keyframes headerSlideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header scroll behavior */
.app-header {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-header.header-hidden {
    transform: translateY(-100%);
}

/* Navigation scroll behavior */
.nav-bar {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-bar.nav-hidden {
    transform: translateY(100px);
}
