/* ======================
   ADDITIONAL STYLES FOR AUTH & DASHBOARD PAGES
   Link this file in login.html, signup.html, pricing.html, dashboard.html
   <link rel="stylesheet" href="auth-dashboard.css">
   ====================== */

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: -20px -20px 20px -20px;
    padding: 0 20px;
}

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

.nav-brand a {
    font-size: 1.3rem;
    font-weight: bold;
    color: #667eea;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: #f0f4ff;
    color: #667eea;
}

.nav-links a.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.nav-links a.active {
    background: #667eea;
    color: white;
}

/* Auth Container */
.auth-container {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-box {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.auth-box h1 {
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.auth-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

/* Forms */
.auth-form .form-group {
    margin-bottom: 20px;
}

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

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.auth-form input:focus,
.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.form-hint {
    display: block;
    color: #999;
    font-size: 0.85rem;
    margin-top: 5px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.forgot-link {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-large {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

/* Divider */
.divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #ddd;
}

.divider span {
    background: white;
    padding: 0 15px;
    position: relative;
    color: #999;
    font-size: 0.9rem;
}

/* Social Auth */
.social-auth {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-google, .btn-github {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-github {
    background: #24292e;
    color: white;
    border-color: #24292e;
}

/* Messages */
.error-message, .success-message {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.error-message {
    background: #fee;
    color: #c00;
    border: 1px solid #fcc;
}

.success-message {
    background: #efe;
    color: #060;
    border: 1px solid #cfc;
}

/* Pricing */
.pricing-header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    padding: 40px 20px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.pricing-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.pricing-card.popular {
    border: 3px solid #667eea;
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #667eea;
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.price {
    margin-bottom: 25px;
}

.price .amount {
    font-size: 3rem;
    font-weight: bold;
    color: #667eea;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.plan-features li {
    padding: 10px 0;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

/* Dashboard */
.dashboard-container {
    display: flex;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 100px);
}

.dashboard-sidebar {
    background: white;
    border-radius: 15px;
    padding: 20px;
    min-width: 250px;
    height: fit-content;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.menu-item.active {
    background: #667eea;
    color: white;
}

.dashboard-main {
    flex: 1;
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.dashboard-section {
    display: none;
}

.dashboard-section.active {
    display: block;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #f8f9ff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #667eea;
}

.history-table table {
    width: 100%;
    border-collapse: collapse;
}

.history-table th, .history-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.status-completed {
    color: #10b981;
}

.status-failed {
    color: #ef4444;
}

/* User Info */
.user-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
}

.plan-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.plan-badge.plan-free {
    background: #6b7280;
    color: white;
}

.plan-badge.plan-monthly {
    background: #667eea;
    color: white;
}

.plan-badge.plan-pro {
    background: #764ba2;
    color: white;
}

/* Auth Required */
.auth-required {
    padding: 60px 20px;
    text-align: center;
}

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

/* Ad Container */
.ad-container {
    background: #f8f9ff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 400px;
}

/* Responsive */
@media (max-width: 968px) {
    .dashboard-container {
        flex-direction: column;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }
}
