/* --- Header Styles --- */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px; /* Fixed height is crucial for alignment */
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-bottom: 1px solid rgba(0, 230, 118, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center; /* Vertically centers everything */
}

.header-inner {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 12px; /* Slightly tighter padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%; /* Take full height of parent */
}

/* Logo Fixing */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 8px; /* Proper space between icon and text */
}

.logo-img {
    width: 91px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
    filter: brightness(0) saturate(100%) invert(78%) sepia(75%) saturate(1057%) hue-rotate(85deg) brightness(101%) contrast(101%);
}

/* Logo Text (Optional if you have text next to image) */
.logo span {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    line-height: 1;
}

/* Button Fixing */
.header-actions {
    display: flex;
    gap: 10px; /* consistent gap between buttons */
    align-items: center;
}

.header-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px; /* Match logo height for symmetry */
    padding: 0 16px; /* Horizontal padding only */
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    white-space: nowrap;
    transition: transform 0.1s active;
}

/* Button Colors (Ensure these classes exist in HTML) */
.btn-login {
    background-color: var(--primary-green);
    color: #000;
    border: none;
}

.btn-register {
    background-color: transparent;
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
}

.header-actions .btn:active {
    transform: scale(0.95); /* Click effect */
}

/* --- Footer Styles (Kept largely the same but cleaned up) --- */
.app-footer {
    background-color: var(--bg-card);
    border-top: 1px solid #222;
    padding: 30px 0 20px;
    margin-top: 40px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-gray);
    font-size: 12px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-green);
}

.footer-logo-img {
    height: 40px; /* Consistent size */
    width: auto;
    opacity: 0.6;
    margin-bottom: 10px;
    transition: opacity 0.3s;
}

.footer-logo-img:hover {
    opacity: 1;
}

.app-footer p {
    color: #666;
    font-size: 11px;
    margin-top: 5px;
}

/* --- Mobile Specific Tweaks --- */
@media (max-width: 480px) {
    .logo-img {
        width: 96px !important;
        height: 39px !important;
    }
}

@media (max-width: 360px) {
    /* For very small screens (iPhone SE, etc) */
    .logo-img {
        width: 96px !important;
        height: 39px !important;
    }
    
    .logo span {
        display: none; /* Hide text, keep only logo icon if screen is too small */
    }
    
    .header-actions .btn {
        padding: 0 12px;
        font-size: 12px;
    }
}