/* Variables CSS */
:root {
    --primary-color: #0ea5e9;
    --secondary-color: #0284c7;
    --accent-color: #06b6d4;
    --dark-color: #374151;
    --light-color: #f8fafc;
    --gray-color: #6b7280;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Reset et styles généraux */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #ffffff;
}

/* Container Bootstrap override */
.container {
    max-width: 1200px;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (max-width: 576px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Header / Navbar */
.navbar {
    background: rgba(55, 65, 81, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 0.5rem 2rem;
    border-bottom: 1px solid rgba(14, 165, 233, 0.2);
}

.navbar-brand {
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.logo-img {
    height: 40px;
    width: auto;
    max-width: 180px;
    display: block;
    filter: brightness(1.05);
    transition: var(--transition);
}

.navbar-brand:hover .logo-img {
    filter: brightness(1.15);
}

.brand-text {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent-color);
    letter-spacing: -0.5px;
}

.navbar-nav {
    gap: 0.25rem;
    align-items: center;
}

.nav-item {
    margin-left: 0;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 500;
    padding: 0.5rem 0.9rem !important;
    transition: var(--transition);
    display: block;
    border-radius: 6px;
    position: relative;
    font-size: 0.95rem;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 4px;
    left: 50%;
    background: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
    background-color: rgba(14, 165, 233, 0.08);
}

.navbar-nav .nav-link:hover::after {
    width: 70%;
}

.btn-admin {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white !important;
    padding: 0.55rem 1.1rem !important;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.25);
    font-size: 0.9rem;
}

.btn-admin:hover {
    background: linear-gradient(135deg, var(--accent-color), #0891b2);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
    transform: translateY(-1px);
    color: white !important;
}

.btn-logout {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white !important;
    padding: 0.55rem 1.1rem !important;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
    font-size: 0.9rem;
}

.btn-logout:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    transform: translateY(-1px);
    color: white !important;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: 2px solid var(--primary-color);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991px) {
    .navbar {
        padding: 0.5rem 1.5rem;
    }

    .navbar-nav {
        gap: 0;
        margin-top: 0.75rem;
    }

    .navbar-nav .nav-link {
        padding: 0.65rem 1rem !important;
        border-bottom: 1px solid rgba(14, 165, 233, 0.15);
        border-radius: 0;
        font-size: 0.9rem;
    }

    .navbar-nav .nav-link::after {
        display: none;
    }

    .navbar-nav .nav-link:hover {
        background-color: rgba(14, 165, 233, 0.12);
    }

    .nav-item.ms-md-3 {
        margin-left: 0 !important;
    }

    .btn-admin,
    .btn-logout {
        margin-left: 0 !important;
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
        padding: 0.65rem 1rem !important;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 0.5rem 1rem;
    }

    .logo-img {
        height: 35px;
    }

    .brand-text {
        font-size: 1.1rem;
    }

    .navbar-nav .nav-link {
        font-size: 0.85rem;
        padding: 0.6rem 0.75rem !important;
    }

    .btn-admin,
    .btn-logout {
        padding: 0.6rem 0.75rem !important;
        font-size: 0.8rem;
    }
}

/* Main */
main {
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 6rem 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Boutons */
.btn {
    display: inline-block;
    background-color: var(--accent-color) !important;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid var(--accent-color) !important;
    font-weight: 600;
}

.btn:hover {
    background-color: #0891b2 !important;
    border-color: #0891b2 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2) !important;
}

.btn-outline {
    background-color: transparent !important;
    color: white !important;
    border: 2px solid white !important;
}

.btn-outline:hover {
    background-color: white !important;
    color: var(--primary-color) !important;
}

/* Sections */
section {
    padding: 4rem 2rem;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-weight: 700;
    text-align: center;
}

section h5 {
    color: var(--primary-color);
    font-weight: 600;
}

section p {
    font-size: 1rem;
    color: var(--gray-color);
    margin-bottom: 2rem;
    text-align: center;
}

/* Cards */
.card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.card h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.card p {
    color: var(--gray-color);
    margin-bottom: 0.5rem;
    text-align: left;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-color), #1f2937);
    color: white;
    margin-top: 4rem;
    padding: 2.5rem 2rem 1.5rem;
    border-top: 2px solid var(--primary-color);
}

.footer .container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-section h6 {
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.footer-section p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-link {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    margin-top: 1rem;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .footer {
        padding: 2rem 1.5rem 1rem;
    }

    .footer-section {
        margin-bottom: 1.5rem;
    }

    .footer-links {
        gap: 1rem;
    }

    .footer-links a {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 1.5rem 1rem 0.75rem;
    }

    .footer-section {
        text-align: center;
        margin-bottom: 1.25rem;
    }

    .footer-section h6 {
        margin-bottom: 0.5rem;
    }

    .footer-section p {
        font-size: 0.85rem;
    }

    .footer-links {
        justify-content: center;
        gap: 1rem;
    }

    .footer-link {
        font-size: 0.85rem;
    }

    .footer-bottom {
        padding-top: 0.75rem;
        margin-top: 0.75rem;
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }
}

/* Forms */
.form-control,
.form-select {
    border: 1px solid #d1d5db;
    border-radius: var(--border-radius);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* Tables */
table {
    margin-top: 1rem;
}

thead {
    background-color: var(--light-color);
}

thead th {
    color: var(--primary-color);
    font-weight: 600;
    border: none;
}

tbody td {
    border-color: #e5e7eb;
}

/* Alert Styles */
.alert {
    border-radius: var(--border-radius);
}

.alert-success {
    background-color: #d1fae5;
    border-color: #10b981;
    color: var(--dark-color);
}

.alert-danger {
    background-color: #fee2e2;
    border-color: #dc2626;
    color: var(--dark-color);
}

.alert-info {
    background-color: #d1f2eb;
    border-color: var(--accent-color);
    color: var(--dark-color);
}

/* Portfolio Items */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    height: 300px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(14, 165, 233, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.portfolio-overlay p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.portfolio-overlay a {
    color: white;
    border: 2px solid white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
}

.portfolio-overlay a:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Text Colors */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease-in-out;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    section h2 {
        font-size: 1.8rem;
    }

    section {
        padding: 2rem 1rem;
    }

    .navbar-nav {
        gap: 0.5rem;
    }

    .btn-admin {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
        text-align: center;
    }

    .service-icon {
        font-size: 2rem;
    }

    .card {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    section h2 {
        font-size: 1.3rem;
    }

    .btn {
        font-size: 0.9rem !important;
        padding: 0.6rem 1rem !important;
    }
}

/* Contact Page Styles */
.contact-form-wrapper {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left: 4px solid var(--primary-color);
}

.contact-form-wrapper h3 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.form-control-lg {
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control-lg:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.3rem rgba(14, 165, 233, 0.25);
    background-color: #f8fafc;
}

.form-label {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.fw-600 {
    font-weight: 600;
}

.form-text {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    font-weight: 600;
    transition: var(--transition);
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
    color: white;
}

.btn-primary span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Contact Info Cards */
.contact-info-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.75rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: var(--transition);
    align-items: flex-start;
}

.contact-info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.contact-icon {
    font-size: 2rem;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    width: 60px;
    height: 60px;
    border-radius: 12px;
    color: white;
}

.contact-content h6 {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.contact-content p {
    color: var(--gray-color);
    margin-bottom: 0;
    line-height: 1.7;
    font-size: 0.95rem;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 700;
}

.social-link:hover {
    background: var(--secondary-color);
    transform: scale(1.15) rotate(5deg);
}

.social-link span {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Alert Customization */
.alert-dismissible .btn-close {
    opacity: 0.5;
    transition: var(--transition);
}

.alert-dismissible .btn-close:hover {
    opacity: 1;
}

.alert-success {
    background-color: #ecfdf5;
    border: 2px solid #10b981;
    color: #065f46;
}

.alert-danger {
    background-color: #fef2f2;
    border: 2px solid #dc2626;
    color: #7f1d1d;
}

/* About Hero Section */
.about-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
    border-radius: 0;
}

.about-hero h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-hero p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
}

/* Contact Page Responsive */
@media (max-width: 991px) {
    .contact-form-wrapper {
        padding: 2rem;
    }

    .contact-info-card {
        gap: 1rem;
        padding: 1.5rem;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.75rem;
    }

    .contact-content h6 {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .contact-form-wrapper {
        padding: 1.5rem;
        border-left: 3px solid var(--primary-color);
    }

    .contact-form-wrapper h3 {
        font-size: 1.3rem;
        margin-bottom: 1.25rem;
    }

    .form-control-lg {
        font-size: 0.95rem;
        padding: 0.625rem 0.875rem;
    }

    .btn-primary {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .contact-info-card {
        padding: 1.25rem;
        gap: 1rem;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }

    .contact-content h6 {
        font-size: 0.95rem;
    }

    .contact-content p {
        font-size: 0.9rem;
    }

    .social-link {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .about-hero {
        padding: 2.5rem 1.5rem;
    }

    .about-hero h2 {
        font-size: 1.75rem;
    }

    .about-hero p {
        font-size: 1rem;
    }
}

/* Admin Dashboard Styles */
.admin-layout {
    display: flex;
    min-height: calc(100vh - 200px);
    background-color: #f9fafb;
}

.admin-sidebar {
    width: 260px;
    background: linear-gradient(135deg, var(--dark-color), #1f2937);
    color: white;
    padding: 2rem 0;
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
}

.sidebar-header {
    padding: 0 1.5rem 1.5rem;
    border-bottom: 2px solid rgba(14, 165, 233, 0.3);
}

.sidebar-header h3 {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
    color: var(--accent-color);
}

.sidebar-header p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 1rem;
}

.nav-item {
    padding: 1rem 1.5rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
    border-left: 3px solid transparent;
    font-weight: 500;
}

.nav-item:hover {
    background-color: rgba(14, 165, 233, 0.2);
    color: var(--accent-color);
}

.nav-item.active {
    background-color: rgba(14, 165, 233, 0.3);
    border-left-color: var(--accent-color);
    color: var(--accent-color);
}

.nav-item.logout {
    color: #ff6b6b;
    margin-top: auto;
}

.nav-item.logout:hover {
    background-color: rgba(255, 107, 107, 0.1);
}

.sidebar-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 0.5rem 0;
}

.admin-main {
    flex: 1;
    padding: 2rem;
}

.dashboard-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.dashboard-header h1 {
    color: var(--dark-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    color: var(--gray-color);
    font-size: 1rem;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    color: var(--dark-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--gray-color);
    font-size: 0.95rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.stat-icon {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.stat-icon.projects {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(6, 182, 212, 0.2));
}

.stat-icon.messages {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(34, 197, 94, 0.2));
}

.stat-content h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: var(--gray-color);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.stat-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.stat-link:hover {
    color: var(--secondary-color);
}

.form-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
}

.form-section h2 {
    color: var(--dark-color);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.modern-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.form-label span {
    color: #ef4444;
}

.form-control {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-control textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group small {
    font-size: 0.85rem;
    color: var(--gray-color);
    margin-top: 0.25rem;
}

.projects-section,
.messages-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.projects-section h2,
.messages-section h2 {
    color: var(--dark-color);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background-color: #f3f4f6;
}

.admin-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--primary-color);
    border-bottom: 2px solid #e5e7eb;
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.admin-table tbody tr {
    transition: var(--transition);
}

.admin-table tbody tr:hover {
    background-color: #f9fafb;
}

.badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-delete {
    background-color: #ef4444;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn-delete:hover {
    background-color: #dc2626;
    transform: translateY(-2px);
}

.email-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.email-link:hover {
    text-decoration: underline;
}

.message-row:hover {
    background-color: #f9fafb;
}

.message-content-row td {
    background-color: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
}

.message-content {
    padding: 1rem 0;
}

.message-content strong {
    color: var(--primary-color);
}

.message-content p {
    margin-top: 0.5rem;
    color: var(--gray-color);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        top: 0;
        padding: 1rem 0;
    }

    .sidebar-header {
        padding: 0.75rem 1rem 1rem;
    }

    .sidebar-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0;
    }

    .nav-item {
        flex: 1;
        min-width: 120px;
        padding: 0.75rem;
        text-align: center;
        border-left: none;
        border-bottom: 2px solid transparent;
    }

    .nav-item:hover {
        border-bottom-color: var(--accent-color);
        border-left: none;
    }

    .nav-item.active {
        border-left: none;
        border-bottom-color: var(--accent-color);
    }

    .sidebar-divider {
        display: none;
    }

    .nav-item.logout {
        margin-top: 0;
    }

    .admin-main {
        padding: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        flex-direction: row;
        text-align: left;
    }

    .stat-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
        flex-shrink: 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-section,
    .projects-section,
    .messages-section {
        padding: 1.5rem;
    }

    .admin-table {
        font-size: 0.9rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.75rem 0.5rem;
    }

    .dashboard-header h1 {
        font-size: 1.5rem;
    }

    .page-header h1 {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .admin-sidebar {
        padding: 0.75rem 0;
    }

    .sidebar-header {
        padding: 0.5rem 1rem 0.75rem;
    }

    .sidebar-header h3 {
        font-size: 1.1rem;
    }

    .sidebar-header p {
        font-size: 0.8rem;
    }

    .sidebar-nav {
        flex-direction: column;
    }

    .nav-item {
        flex: 1;
        min-width: auto;
        width: 100%;
        text-align: left;
        padding: 0.65rem 1rem;
        border-left: 3px solid transparent;
        border-bottom: 1px solid rgba(14, 165, 233, 0.2);
    }

    .nav-item:hover,
    .nav-item.active {
        border-left-color: var(--accent-color);
        border-bottom: 1px solid rgba(14, 165, 233, 0.2);
    }

    .admin-main {
        padding: 1rem;
    }

    .form-section,
    .projects-section,
    .messages-section {
        padding: 1rem;
    }

    .form-label {
        font-size: 0.9rem;
    }

    .form-control {
        padding: 0.6rem;
        font-size: 16px;
    }

    .stat-card {
        padding: 1.5rem;
        gap: 1rem;
    }

    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }

    .stat-content h3 {
        font-size: 2rem;
    }

    .stat-content p {
        font-size: 0.9rem;
    }

    .dashboard-header {
        margin-bottom: 1.5rem;
    }

    .dashboard-header h1 {
        font-size: 1.25rem;
    }

    .dashboard-header p {
        font-size: 0.9rem;
    }

    .page-header h1 {
        font-size: 1.1rem;
    }

    .page-header p {
        font-size: 0.85rem;
    }

    .form-section h2,
    .projects-section h2,
    .messages-section h2 {
        font-size: 1.1rem;
    }

    .admin-table {
        font-size: 0.8rem;
    }

    .admin-table th {
        padding: 0.5rem;
        font-size: 0.75rem;
    }

    .admin-table td {
        padding: 0.5rem;
    }

    .badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }

    .btn-delete {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    .btn-primary {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
    }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .message-content p {
        font-size: 0.85rem;
    }
}

/* Sections Management Styles */
.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.section-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.15);
    transform: translateY(-3px);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.section-header h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
}

.section-status {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.section-status.active {
    background-color: #d1fae5;
    color: #065f46;
}

.section-status.inactive {
    background-color: #fee2e2;
    color: #7f1d1d;
}

.section-preview {
    color: var(--gray-color);
    font-size: 0.9rem;
    line-height: 1.5;
    max-height: 100px;
    overflow: hidden;
}

.section-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #9ca3af;
}

.section-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.btn-edit {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    flex: 1;
}

.btn-edit:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
}

@media (max-width: 576px) {
    .sections-grid {
        grid-template-columns: 1fr;
    }

    .section-card {
        padding: 1rem;
    }

    .section-actions {
        flex-direction: column;
    }

    .btn-edit,
    .btn-delete {
        width: 100%;
    }
}
