/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #20b2aa 0%, #17a2b8 100%);
    min-height: 100vh;
    color: #333;
}

/* Auth Page Styles */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 650px;
}

.auth-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header i {
    font-size: 48px;
    color: #20b2aa;
    margin-bottom: 15px;
}

.auth-header h1 {
    color: #20b2aa;
    margin-bottom: 10px;
    font-size: 2rem;
}

.auth-header p {
    color: #666;
    font-size: 0.9rem;
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: #20b2aa;
}

.tab-btn.active {
    color: #20b2aa;
    border-bottom-color: #20b2aa;
    font-weight: 600;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.home-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #20b2aa;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.home-link:hover {
    color: #17a2b8;
    text-decoration: underline;
}

.home-link i {
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #20b2aa;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.85rem;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #20b2aa 0%, #17a2b8 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(32, 178, 170, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.error-message {
    margin-top: 15px;
    padding: 12px;
    background: #fee;
    color: #c33;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.error-message:not(:empty) {
    display: block;
}

.success-message {
    margin-top: 15px;
    padding: 12px;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.success-message:not(:empty) {
    display: block;
}

/* Main App Styles */
.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.app-header {
    background: white;
    border-radius: 0 0 15px 15px;
    padding: 20px 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.app-header h1 {
    color: #20b2aa;
    display: flex;
    align-items: center;
    gap: 10px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
    position: relative;
    z-index: 1;
}

.user-info {
    text-align: right;
}

.user-info .user-name {
    font-weight: 600;
    color: #333;
}

.user-info .user-plan {
    font-size: 0.85rem;
    color: #666;
}

.btn-secondary {
    padding: 8px 16px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: #5a6268;
}

.subscription-banner {
    background: linear-gradient(135deg, #20b2aa 0%, #17a2b8 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.subscription-banner.warning {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.subscription-banner .banner-content {
    flex: 1;
}

.subscription-banner .banner-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.subscription-banner .banner-text {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Responsive */

/* Tablet en kleiner: titel niet meer absoluut in het midden, anders schuift hij over het menu */
@media (max-width: 1100px) {
    .app-header {
        gap: 15px;
    }

    .app-header h1 {
        position: static;
        transform: none;
        font-size: 1.6rem;
        flex-shrink: 0;
    }
}

@media (max-width: 768px) {
    .auth-card {
        padding: 30px 20px;
    }

    .app-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 16px;
    }

    .app-header h1 {
        justify-content: center;
        font-size: 1.4rem;
    }

    /* Naam/plan op een eigen regel, knoppen naast elkaar (mogen doorlopen naar een volgende regel) */
    .user-menu {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        width: 100%;
        margin-left: 0;
    }

    .user-info {
        width: 100%;
        text-align: center;
    }
    
    .subscription-banner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Upgrade Link Styling */
#upgradeLink {
    display: none;
    margin-top: 8px;
    color: #20b2aa;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 2px solid #20b2aa;
    padding-bottom: 2px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

#upgradeLink:hover {
    color: #17a2b8;
    border-bottom-color: #17a2b8;
    transform: translateY(-1px);
}

#upgradeLink i {
    margin-right: 5px;
}

@media (max-width: 768px) {
    #upgradeLink {
        font-size: 0.85rem;
    }
}

