/* ============================================================
   NSDCT Life Mentor - Main Stylesheet
   ============================================================ */

/* ===== RESET & BASE ===== */
/* ===== Registration Success Page ===== */
.success-card {
    text-align: center;
    padding: 50px 40px !important;
}

.success-icon {
    font-size: 4rem;
    color: #27ae60;
    margin-bottom: 15px;
}

.success-icon i {
    animation: bounceIn 0.8s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.user-id-display {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
}

.user-id-display label {
    display: block;
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.user-id-box {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 2px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 2px dashed var(--primary);
    font-family: 'Courier New', monospace;
}

.btn-copy {
    margin-top: 12px;
    padding: 8px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.9rem;
}

.btn-copy:hover {
    background: var(--primary-light);
}

.verification-status {
    margin: 25px 0;
    padding: 25px;
    background: #fef3c7;
    border-radius: 12px;
    border: 1px solid #f59e0b;
}

.status-badge.pending {
    display: inline-block;
    padding: 8px 25px;
    background: #f59e0b;
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 15px;
}

.status-badge.pending i {
    margin-right: 8px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.verification-message {
    color: #92400e;
    font-size: 1rem;
    margin: 10px 0;
}

.verification-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    position: relative;
}

.verification-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #ddd;
    z-index: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #666;
    transition: 0.3s;
}

.step.active .step-number {
    background: #f59e0b;
    color: white;
}

.step-text {
    font-size: 0.75rem;
    margin-top: 8px;
    color: #666;
}

.step.active .step-text {
    color: #92400e;
    font-weight: 600;
}

.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

.success-actions .btn-primary,
.success-actions .btn-secondary {
    min-width: 180px;
    text-align: center;
}

.support-note {
    margin-top: 20px;
    padding: 15px;
    background: #e8f4fd;
    border-radius: 8px;
    color: #1a56db;
}

.support-note i {
    margin-right: 8px;
}

/* ===== Mobile Responsive for Success Page ===== */
@media (max-width: 768px) {
    .success-card {
        padding: 30px 20px !important;
    }
    .user-id-box {
        font-size: 1.8rem;
        padding: 12px;
    }
    .verification-steps {
        flex-direction: column;
        gap: 15px;
    }
    .verification-steps::before {
        display: none;
    }
    .step {
        flex-direction: row;
        gap: 15px;
    }
    .success-actions {
        flex-direction: column;
    }
    .success-actions .btn-primary,
    .success-actions .btn-secondary {
        width: 100%;
    }
}

/* ===== Alert Enhancements ===== */
.alert-error i {
    margin-right: 8px;
}

.alert-error {
    background: #fee2e2;
    border: 1px solid #ef4444;
    color: #991b1b;
    padding: 15px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0a3a5e;
    --primary-light: #1f5a7a;
    --primary-dark: #062438;
    --accent: #e67e22;
    --accent-hover: #d35400;
    --gold: #f1c40f;
    --success: #27ae60;
    --danger: #e74c3c;
    --warning: #f39c12;
    --light-bg: #f5f9fc;
    --white: #ffffff;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    --radius: 12px;
    --transition: 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--light-bg);
    color: #1e2b3c;
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: var(--primary);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
.header {
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h2 {
    color: var(--primary);
    font-size: 1.5rem;
}

.logo i {
    color: var(--accent);
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.nav ul li a {
    padding: 8px 15px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav ul li a:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-nav {
    background: var(--accent);
    color: var(--white) !important;
}

.btn-nav:hover {
    background: var(--accent-hover) !important;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* ===== HERO ===== */
.hero {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
}

.hero .tagline {
    font-size: 1.3rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 25px 0;
}

.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--white);
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-small {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.btn-small:hover {
    background: var(--primary-light);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.stats {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.stats span {
    font-size: 0.95rem;
    opacity: 0.9;
}

.stats i {
    color: var(--gold);
    margin-right: 8px;
}

.hero-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ===== SECTIONS ===== */
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 30px;
    text-align: center;
}

.section-title i {
    color: var(--accent);
}

/* ===== CATEGORIES ===== */
.categories {
    padding: 60px 0;
    background: var(--white);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.category-card {
    background: var(--light-bg);
    padding: 30px 20px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-bottom-color: var(--accent);
}

.category-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.category-card p {
    font-size: 0.9rem;
    color: #666;
}

/* ===== GALLERY ===== */
.gallery {
    padding: 60px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: var(--white);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    font-size: 1rem;
}

.gallery-overlay p {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* ===== NOTICES ===== */
.notices {
    padding: 60px 0;
    background: var(--white);
}

.notice-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.notice-item {
    background: var(--light-bg);
    padding: 20px 25px;
    border-radius: var(--radius);
    border-left: 4px solid var(--accent);
    transition: var(--transition);
}

.notice-item:hover {
    box-shadow: var(--shadow);
}

.notice-date {
    font-size: 0.8rem;
    color: #888;
    margin-right: 15px;
}

.notice-item h4 {
    display: inline;
    font-size: 1.05rem;
}

.notice-item p {
    margin-top: 8px;
    color: #555;
}

/* ===== AUTH (LOGIN/REGISTER) ===== */
.auth-section {
    padding: 60px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.auth-card {
    max-width: 500px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.auth-card h2 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 10px;
}

.auth-card p {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.form-group label i {
    color: var(--accent);
    width: 20px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
    outline: none;
}

.alert {
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-error {
    background: #fde8e8;
    border: 1px solid var(--danger);
    color: var(--danger);
}

.alert-success {
    background: #e8f5e9;
    border: 1px solid var(--success);
    color: var(--success);
}

.auth-link {
    text-align: center;
    margin-top: 20px;
}

.auth-link a {
    color: var(--accent);
    font-weight: 600;
}

/* ===== DASHBOARD ===== */
.dashboard {
    padding: 40px 0;
}

.dashboard-header {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.dashboard-header h2 {
    color: var(--primary);
}

.dashboard-header p {
    color: #666;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.dashboard-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

.dashboard-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.dashboard-card h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.dashboard-card p {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* ===== ADMIN ===== */
.admin-dashboard .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-card i {
    font-size: 2rem;
    color: var(--accent);
}

.stat-card h3 {
    font-size: 2rem;
    color: var(--primary);
    margin: 5px 0;
}

.stat-card p {
    color: #888;
    font-size: 0.9rem;
}

.admin-actions {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.admin-actions h3 {
    margin-bottom: 20px;
    color: var(--primary);
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: var(--light-bg);
    border-radius: var(--radius);
    transition: var(--transition);
    font-weight: 500;
}

.action-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.action-btn i {
    font-size: 1.2rem;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 50px 0 0;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-about h3 {
    color: var(--white);
    font-size: 1.3rem;
}

.footer-about h3 i {
    color: var(--accent);
}

.footer-about p {
    margin: 10px 0;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--accent);
}

.footer-contact p {
    margin-bottom: 8px;
}

.footer-contact i {
    width: 25px;
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }
    .nav {
        display: none;
        width: 100%;
        margin-top: 15px;
    }
    .nav.open {
        display: block;
    }
    .nav ul {
        flex-direction: column;
        gap: 10px;
    }
    .nav ul li a {
        display: block;
        text-align: center;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .category-grid,
    .gallery-grid,
    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }
    .auth-card {
        padding: 25px;
        margin: 0 15px;
    }
}

@media (max-width: 480px) {
    .category-grid,
    .gallery-grid,
    .dashboard-grid,
    .stats-grid,
    .action-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 1.6rem;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .stats {
        flex-direction: column;
        gap: 10px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}