/* App Styles - Dizipal Admin Panel */
/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066ff;
    --primary-hover: #0052cc;
    --primary-light: #3399ff;
    --secondary-color: #1a1a1a;
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --bg-card-hover: #1a1a1a;
    --bg-input: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #808080;
    --border-color: #2a2a2a;
    --border-hover: #3a3a3a;
    --success-color: #10b981;
    --error-color: #ff4444;
    --warning-color: #ffaa00;
    --gradient-primary: linear-gradient(135deg, #0066ff 0%, #3399ff 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(10, 10, 10, 0.8) 0%, rgba(10, 10, 10, 0.95) 100%);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 30px rgba(0, 102, 255, 0.2);
    --shadow-lg: 0 20px 60px rgba(0, 102, 255, 0.3);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.app-header {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.app-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.app-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: lowercase;
}

.logo-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.logo-plus {
    color: var(--primary-color);
    font-weight: 800;
}

/* Main Content */
.main-content {
    flex: 1;
    padding-top: 8px;
    min-height: calc(100vh - 80px);
}

.auth-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem 20px;
}

.auth-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.form-input.error {
    border-color: var(--error-color);
}

.form-input.success {
    border-color: var(--success-color);
}

.form-error {
    color: var(--error-color);
    font-size: 14px;
    margin-top: 0.25rem;
    display: block;
}

.form-success {
    color: var(--success-color);
    font-size: 14px;
    margin-top: 0.25rem;
    display: block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    min-height: 48px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Links */
.auth-links {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.auth-links p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: var(--primary-light);
}

/* Alert Messages */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert-error {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: var(--error-color);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success-color);
}

.alert-warning {
    background: rgba(255, 170, 0, 0.1);
    border: 1px solid rgba(255, 170, 0, 0.3);
    color: var(--warning-color);
}

.alert-icon {
    font-size: 18px;
    margin-top: 2px;
}

/* Loading */
.loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Footer */
.app-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: auto;
}

.app-footer .container {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.app-footer p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-container {
        padding: 1rem 20px;
    }

    .auth-card {
        padding: 1.5rem;
    }

    .auth-title {
        font-size: 24px;
    }

    .btn {
        padding: 14px 20px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .app-header .container {
        padding: 0 15px;
    }

    .auth-container {
        padding: 1rem 15px;
    }

    .auth-card {
        padding: 1.25rem;
    }

    .form-input {
        padding: 14px 16px;
        font-size: 16px;
    }
}

/* Additional Form Elements */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
}

.checkbox-label span {
    margin-top: 2px;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: underline;
}

.checkbox-label a:hover {
    color: var(--primary-light);
}

/* Password Toggle Button */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
    z-index: 2;
}

.password-toggle:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.password-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 0.5rem;
    font-size: 14px;
}

.strength-bar {
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    margin-bottom: 0.25rem;
    overflow: hidden;
}

.strength-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 0%;
    background: var(--error-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.password-strength.weak .strength-bar::after {
    width: 33%;
    background: var(--error-color);
}

.password-strength.fair .strength-bar::after {
    width: 66%;
    background: var(--warning-color);
}

.password-strength.good .strength-bar::after {
    width: 100%;
    background: var(--success-color);
}

.password-strength.strong .strength-bar::after {
    width: 100%;
    background: var(--primary-color);
}

.password-strength.very-strong .strength-bar::after {
    width: 100%;
    background: var(--success-color);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.strength-feedback {
    font-size: 12px;
    color: var(--text-muted);
}

/* Relative positioning for form inputs with buttons */
.form-group {
    position: relative;
}

.form-group .form-input {
    padding-right: 40px; /* Space for password toggle */
}

/* Light Theme Support */
body.light-theme {
    --bg-dark: #f8f9fa;
    --bg-card: #ffffff;
    --bg-card-hover: #f8f9fa;
    --bg-input: #ffffff;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;
    --border-color: #e9ecef;
    --border-hover: #dee2e6;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

.hidden { display: none; }
.show { display: block; }

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Account Page Styles */
.account-nav-link.disabled {
    color: #555;
    cursor: default;
    opacity: 0.4;
    pointer-events: none;
    background: transparent;
}

.account-nav-link.disabled:hover {
    color: #555;
    opacity: 0.4;
    background: transparent;
}

.account-nav-link.disabled i {
    color: #555;
    opacity: 0.4;
}

/* New User Offer Styles */
.new-user-offer {
    background: transparent;
    border-radius: 16px;
    padding: 2rem;
    margin: 1.5rem 0;
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.offer-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.offer-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 3px 8px rgba(0,0,0,0.8), 0 1px 2px rgba(0,0,0,0.6);
}

.offer-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 4px rgba(0,0,0,0.7), 0 1px 2px rgba(0,0,0,0.5);
}

.offer-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}


.offer-content {
    background: linear-gradient(135deg,#0f172a,#020617);
    padding: 35px;
    border-radius: 16px;
    text-align: center;
    max-width: 500px;
    margin: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    color: white;
}

.offer-title {
    font-size: 26px;
    margin-bottom: 10px;
}

.offer-description {
    opacity: 0.8;
    margin-bottom: 25px;
    line-height: 1.5;
}

.offer-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.test-btn-primary,
.subscription-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    padding: 14px 22px;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.test-btn-primary {
    background: #25D366;
    color: white;
}

.test-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37,211,102,0.4);
}

.subscription-btn {
    background: linear-gradient(135deg,#f59e0b,#fbbf24);
    color: black;
}

.subscription-btn:hover {
    transform: translateY(-2px);
}

.test-btn-primary,
.subscription-btn {
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    text-decoration: none;
    min-width: 160px;
    justify-content: center;
}

.test-btn-primary {
    background: linear-gradient(135deg, #00cc77 0%, #009944 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 204, 119, 0.4), 0 2px 8px rgba(0,0,0,0.3);
}

.test-btn-primary:hover {
    background: linear-gradient(135deg, #00aa66 0%, #007733 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 204, 119, 0.5), 0 4px 12px rgba(0,0,0,0.4);
}

.subscription-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.subscription-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.feature-showcase {
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    text-align: center;
}

.feature-logo {
    margin-bottom: 1.5rem;
}

.logo-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    padding: 0;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 4px rgba(0,0,0,0.7), 0 1px 2px rgba(0,0,0,0.5);
}

.feature-item i {
    color: #4ade80;
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .new-user-offer {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
        gap: 1.5rem;
    }

    .offer-title {
        font-size: 1.5rem;
    }

    .offer-description {
        font-size: 1rem;
    }

    .offer-buttons {
        flex-direction: column;
        width: 100%;
    }

    .test-btn-primary,
    .subscription-btn {
        width: 100%;
        justify-content: center;
    }

    .feature-list {
        align-items: center;
    }
}

/* Fix: Ensure global CSS variables are defined */
:root {
    --primary-color: #0066ff;
    --primary-hover: #0052cc;
    --primary-light: #3399ff;
    --secondary-color: #1a1a1a;
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --bg-card-hover: #1a1a1a;
    --bg-input: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #808080;
    --border-color: #2a2a2a;
    --border-hover: #3a3a3a;
    --success-color: #10b981;
    --error-color: #ff4444;
    --warning-color: #ffaa00;
    --gradient-primary: linear-gradient(135deg, #0066ff 0%, #3399ff 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(10, 10, 10, 0.8) 0%, rgba(10, 10, 10, 0.95) 100%);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 30px rgba(0, 102, 255, 0.2);
    --shadow-lg: 0 20px 60px rgba(0, 102, 255, 0.3);
}
