/* style.css - Global styles for JCC CITY ALTAR */

/* ---------- GOOGLE FONTS ---------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ---------- CSS VARIABLES (Dark mode default) ---------- */
:root {
    --bg-primary: #0a0a1a;
    --bg-secondary: #0f0f2a;
    --bg-card: #14142e;
    --text-primary: #ffffff;
    --text-secondary: #c4b5fd;
    --text-muted: #a0a0c0;
    --accent: #8b5cf6;
    --accent-hover: #7c3aed;
    --accent-glow: rgba(139, 92, 246, 0.3);
    --border-color: rgba(255, 255, 255, 0.1);
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
}

/* Light Mode Variables */
body.light-mode {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #1e1b2e;
    --text-secondary: #6d28d9;
    --text-muted: #4b5563;
    --border-color: #e2e8f0;
    --accent-glow: rgba(109, 40, 217, 0.1);
}

/* ---------- RESET & BASE ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* ---------- CONTAINER ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ---------- NAVIGATION BAR ---------- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

body.light-mode nav {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.logo h3 {
    font-size: 1.2rem;
    margin-bottom: 0;
    background: linear-gradient(135deg, #fff, #c4b5fd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body.light-mode .logo h3 {
    background: linear-gradient(135deg, #1e1b2e, #6d28d9);
    -webkit-background-clip: text;
    background-clip: text;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

nav ul li a:hover {
    color: var(--accent);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

.theme-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.theme-btn:hover {
    transform: scale(1.05);
    background: var(--accent);
    border-color: var(--accent);
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--accent-glow);
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--accent);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--accent);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

/* ---------- SECTIONS ---------- */
.section {
    padding: 5rem 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
}

/* ---------- CARDS ---------- */
.about-cards, .service-grid, .events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.about-card, .service-card, .event-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.about-card:hover, .service-card:hover, .event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.3);
}

.about-card i, .event-card i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.about-card h3, .service-card h3, .event-card h3 {
    margin-bottom: 0.5rem;
}

/* ---------- WATCH BUTTON ---------- */
.watch-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    margin-top: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.watch-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

.live-dot {
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.5); }
}

/* ---------- MEDIA GALLERY ---------- */
.media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.media-item {
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.media-item:hover {
    transform: translateY(-5px);
}

.media-item img, .media-item video {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.media-info {
    padding: 1rem;
}

.media-info h4 {
    margin-bottom: 0.3rem;
}

.media-type {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    background: var(--accent);
    color: white;
    margin-bottom: 0.5rem;
}

/* Media actions container */
.media-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

/* Edit button style */
.btn-edit {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.btn-edit:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* Delete button style */
.btn-delete {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
    border: 1px solid var(--error);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.btn-delete:hover {
    background: var(--error);
    color: white;
}

/* Media description */
.media-description {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

/* Edit Modal Styles */
#edit-media-modal {
    display: none;
}

#edit-media-modal.show {
    display: flex;
}

#edit-media-modal .modal-content {
    max-width: 500px;
    width: 90%;
}

#edit-media-form .modal-field {
    margin-bottom: 1rem;
}

#edit-media-form input,
#edit-media-form textarea {
    width: 100%;
    padding: 0.8rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
}

#edit-media-form textarea {
    min-height: 100px;
    resize: vertical;
}

.btn-save {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-weight: 600;
}

.btn-save:hover {
    background: var(--accent-hover);
}

#media-modal {
    display: none;
}

#media-modal.show {
    display: flex;
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--bg-secondary);
    padding: 3rem 5% 1rem;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand h3 {
    margin-bottom: 0.5rem;
}

.footer-brand p {
    font-size: 0.9rem;
}

.footer-logo {
    width: 60px;
    margin-bottom: 1rem;
    border-radius: 50%;
}

.footer-links h4, .footer-contact h4, .footer-social h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a:hover, .footer-contact a:hover {
    color: var(--accent);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-icons a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    nav ul {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    nav ul {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .section {
        padding: 3rem 5%;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .btn, .btn-outline {
        width: 100%;
        text-align: center;
    }
}



/* index.css - Home page specific styles */

/* Hero Section */
.intro {
    text-align: center;
    padding: 6rem 5% 4rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), transparent);
}

.intro h1 {
    margin-bottom: 1rem;
}

.intro h1 span {
    background: linear-gradient(135deg, var(--accent), #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tagline {
    font-size: 1.3rem;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 1rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Section CTA */
.section-cta {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--accent-glow), transparent);
    border-radius: 20px;
}

.btn-cta i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.btn-cta:hover i {
    transform: translateX(5px);
}

.center {
    text-align: center;
    margin-top: 2rem;
}

.intro-text {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

/* Home Media Gallery */
#home-media-gallery {
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .intro {
        padding: 4rem 5% 3rem;
    }
}



/* services.css - Services page specific styles */

.services {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.services h1 {
    text-align: center;
    margin-bottom: 1rem;
}

.services h2 {
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.service-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-card h3 {
    color: var(--accent);
    margin-bottom: 0.8rem;
}

.service-card p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Media Gallery within services */
.section {
    margin: 3rem 0;
}

.section-title {
    text-align: left;
    font-size: 1.8rem;
}

.section-title::after {
    left: 0;
    transform: none;
}

/* Responsive */
@media (max-width: 768px) {
    .services {
        padding: 2rem 5%;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
}



/* ministries.css - Ministries page specific styles */

.ministries-hero {
    text-align: center;
    padding: 5rem 5% 3rem;
    background: linear-gradient(135deg, var(--accent-glow), transparent);
}

.ministries-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.ministries-hero p {
    font-size: 1.2rem;
}

.ministries {
    padding: 3rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.ministry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.ministry-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.ministry-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 30px -15px var(--accent-glow);
}

.ministry-card i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.ministry-card h3 {
    margin-bottom: 0.8rem;
}

.ministry-card p {
    font-size: 0.95rem;
}

.join-ministry {
    text-align: center;
    padding: 4rem 5%;
    margin: 2rem 5%;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-radius: 30px;
    color: white;
}

.join-ministry h2, .join-ministry p {
    color: white;
}

.join-ministry .btn {
    background: white;
    color: var(--accent);
    margin-top: 1rem;
}

.join-ministry .btn:hover {
    background: transparent;
    color: white;
    border: 2px solid white;
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .ministries-hero h1 {
        font-size: 2rem;
    }
    
    .ministry-grid {
        grid-template-columns: 1fr;
    }
}



/* about.css - About page specific styles */

.about-us {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.about-header {
    text-align: center;
    margin-bottom: 3rem;
}

.about-header h2 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}

.about-header .tagline {
    font-size: 1.2rem;
    color: var(--accent);
}

.about-content {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.about-content p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.values-section {
    margin: 4rem 0;
    text-align: center;
}

.values-section h2 {
    margin-bottom: 2rem;
}

.values-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.value {
    background: var(--accent-glow);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    border: 1px solid var(--accent);
    transition: all 0.3s ease;
}

.value:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.05);
}

.leadership {
    padding: 4rem 5%;
    background: var(--bg-secondary);
    text-align: center;
}

.leaders {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 2rem auto 0;
}

.leader-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.leader-card:hover {
    transform: translateY(-5px);
}

.leader-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.leader-card h3 {
    margin: 1rem 0 0.5rem;
}

.leader-card p {
    padding: 0 1rem 1.5rem;
}

.testimonials {
    padding: 4rem 5%;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.testimonial p {
    font-style: italic;
    font-size: 1.05rem;
}

.testimonial h4 {
    margin-top: 1rem;
    color: var(--accent);
}

.visit {
    padding: 4rem 5%;
    text-align: center;
    background: var(--bg-secondary);
}

.visit iframe {
    width: 100%;
    max-width: 800px;
    height: 400px;
    border-radius: 20px;
    margin-top: 2rem;
    border: none;
}

@media (max-width: 768px) {
    .about-header h2 {
        font-size: 2rem;
    }
    
    .leaders {
        grid-template-columns: 1fr;
    }
    
    .visit iframe {
        height: 250px;
    }
}



/* contact.css - Contact page specific styles */

.contact-us {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 5%;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.divider {
    width: 80px;
    height: 3px;
    background: var(--accent);
    margin: 0 auto 1.5rem;
    border-radius: 3px;
}

.contact-header p {
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info-strip {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.info-item {
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.info-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.info-label {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
}

.info-val {
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

/* Contact Form */
.contact-form {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.req {
    color: var(--error);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.char-count {
    text-align: right;
    font-size: 0.75rem;
    margin-top: 0.3rem;
    color: var(--text-muted);
}

.submit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.privacy-note {
    font-size: 0.8rem;
    margin: 0;
}

.btn-submit {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    border: none;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--accent-glow);
}

.success-banner {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid var(--success);
    border-radius: 8px;
    color: var(--success);
}

@media (max-width: 768px) {
    .contact-us {
        padding: 2rem 5%;
    }
    
    .contact-header h1 {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .submit-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-submit {
        width: 100%;
    }
}



/* admin.css - Admin panel specific styles */

.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.admin-header h1 {
    margin: 0;
    font-size: 2rem;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.back-link {
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: var(--accent);
    color: white;
}

/* Tabs */
.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    padding: 0.8rem 1.8rem;
    background: transparent;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
}

.tab-btn.active {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
    background: var(--accent-glow);
}

.tab-btn:hover:not(.active) {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Stats */
.stats-container {
    margin-bottom: 2rem;
}

.stat-box {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    padding: 1rem 2rem;
    border-radius: 16px;
    text-align: center;
}

.stat-box h3 {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.stat-box .number {
    font-size: 2.5rem;
    font-weight: 800;
}

/* Controls */
.controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.search-box {
    flex: 1;
    min-width: 250px;
    padding: 0.8rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
}

.search-box:focus {
    outline: none;
    border-color: var(--accent);
}

.btn-refresh, .btn-export {
    padding: 0.8rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.btn-refresh:hover, .btn-export:hover {
    background: var(--accent);
    border-color: var(--accent);
}

/* Messages Table */
.messages-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
}

.messages-table th,
.messages-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.messages-table th {
    background: rgba(0, 0, 0, 0.2);
    font-weight: 600;
}

.messages-table tr:hover {
    background: rgba(139, 92, 246, 0.05);
}

.btn-view {
    padding: 0.4rem 1rem;
    background: var(--accent);
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    font-size: 0.8rem;
}

.btn-view:hover {
    background: var(--accent-hover);
}

.btn-delete {
    padding: 0.4rem 1rem;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid var(--error);
    border-radius: 6px;
    color: var(--error);
    cursor: pointer;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.btn-delete:hover {
    background: var(--error);
    color: white;
}

/* Upload Form */
.upload-form {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.upload-form h4 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.upload-form label {
    display: block;
    margin: 1rem 0 0.5rem;
    font-weight: 500;
}

.upload-form input,
.upload-form select,
.upload-form textarea {
    width: 100%;
    padding: 0.8rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
}

.upload-form textarea {
    resize: vertical;
    min-height: 80px;
}

.btn-upload {
    margin-top: 1.5rem;
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--accent-glow);
}

/* Loading */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--accent);
}

.empty-state {
    text-align: center;
    padding: 3rem;
    background: var(--bg-card);
    border-radius: 20px;
}

/* Upload Progress */
.upload-progress {
    width: 100%;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1rem;
}

#upload-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    transition: width 0.3s ease;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-field {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-field label {
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--accent);
}

.modal-field p {
    margin: 0;
    word-break: break-word;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    flex-wrap: wrap;
}

.btn-modal-delete {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid var(--error);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    color: var(--error);
    cursor: pointer;
}

.btn-modal-delete:hover {
    background: var(--error);
    color: white;
}

.btn-reply {
    background: var(--accent);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    color: white;
    cursor: pointer;
}

.btn-modal-close {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
}

.btn-save {
    background: var(--accent);
    border: none;
    padding: 0.8rem;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    background: var(--bg-card);
    border-left: 4px solid var(--accent);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 2500;
    animation: slideIn 0.3s ease;
}

.toast.success {
    border-left-color: var(--success);
}

.toast.error {
    border-left-color: var(--error);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .admin-container {
        padding: 1rem;
    }
    
    .admin-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        text-align: center;
        font-size: 0.85rem;
        padding: 0.6rem;
    }
    
    .messages-table {
        display: block;
        overflow-x: auto;
    }
    
    .controls {
        flex-direction: column;
    }
    
    .btn-refresh, .btn-export {
        width: 100%;
    }
}



