/* Icon Surveys - Main Stylesheet */
/* Red, Charcoal, and White Theme */

:root {
    --primary-red: #c8102e;
    --dark-red: #a00d24;
    --light-red: #e84855;
    --charcoal: #2c3e50;        /* Deep charcoal blue - professional accent */
    --dark-charcoal: #1a252f;   /* Darker charcoal for depth */
    --light-charcoal: #34495e;  /* Lighter charcoal for hover states */
    --white: #ffffff;
    --off-white: #f8f9fa;
    --light-gray: #e9ecef;
    --medium-gray: #6c757d;
    --dark-gray: #343a40;
    --text-dark: #212529;
    --primary-font: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--primary-font);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

/* Custom font will be applied dynamically via load-colors-simple.php */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo a {
    display: block;
}

.logo-image {
    height: 72px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-red);
}

/* Hide admin links in main nav on desktop - they appear in admin shelf instead */
@media (min-width: 769px) {
    .main-nav .admin-mobile-link {
        display: none;
    }

.mobile-nav-form {
    display: block;
    margin: 0;
}

.mobile-nav-form button {
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    padding: 0;
    text-align: left;
    width: 100%;
}

.main-nav .mobile-nav-form button {
    display: block;
    padding: 18px 40px;
    color: var(--text-dark);
    text-decoration: none;
}

.main-nav .mobile-nav-form button:hover,
.main-nav .mobile-nav-form button.active {
    color: var(--primary-red);
}
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* Admin Shelf */
.admin-shelf {
    background-color: var(--primary-red) !important;
    height: 30px;
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    gap: 8px;
}

.admin-nav a {
    color: var(--white) !important;
    text-decoration: none;
    font-size: 0.65rem !important;
    font-weight: 400;
    padding: 6px 8px;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    white-space: nowrap;
}

.admin-nav a:hover {
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.1);
}

.admin-nav a.active {
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.2);
}

.admin-nav-form {
    display: inline;
    margin: 0 4px;
    flex: 1;
    text-align: center;
}

.admin-nav-form button {
    background: none;
    border: none;
    color: var(--white) !important;
    text-decoration: none;
    font-size: 0.65rem !important;
    font-weight: 400;
    padding: 6px 8px;
    transition: all 0.3s ease;
    width: 100%;
    white-space: nowrap;
    cursor: pointer;
}

.admin-nav-form button:hover {
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.1);
}

.admin-nav-form button.active {
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.2);
}

/* Hide admin shelf on mobile - links are in mobile menu instead */
@media (max-width: 768px) {
    .admin-shelf {
        display: none;
    }
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 300px);
}

/* Adjust main content when admin shelf is visible */
body.admin-logged-in .main-content {
    min-height: calc(100vh - 330px);
}

/* Hero Section */
.hero {
    background: url('/images/surveyIntro.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    border-top: 3px solid var(--dark-gray);
    border-bottom: 3px solid var(--dark-gray);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
}

.btn-primary:hover {
    background-color: var(--dark-red);
    border-color: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-red);
    border-color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--off-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* Intro Section */
.intro-section {
    padding: 60px 0;
    background-color: var(--white);
    text-align: center;
}

.intro-header h2 {
    color: var(--charcoal);
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.intro-subtitle {
    color: var(--medium-gray);
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: var(--off-white);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--charcoal);
}

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

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.2);
}

.feature-card p {
    text-align: left;
    margin-bottom: 15px;
}

.feature-card p:last-child {
    margin-bottom: 0;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    color: var(--charcoal);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* CTA Section */
.cta {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--charcoal) 0%, var(--dark-charcoal) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-red);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* Content Sections */
.content-section {
    padding: 80px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.content-text h2 {
    color: var(--charcoal);
    margin-bottom: 20px;
    font-size: 2rem;
}

.content-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.placeholder-image {
    background-color: var(--light-gray);
    padding: 100px 20px;
    text-align: center;
    border-radius: 8px;
    color: var(--medium-gray);
}

.company-image {
    width: 100%;
    max-width: 500px;
    max-height: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

/* Values Section */
.values-section {
    padding: 80px 0;
    background-color: var(--off-white);
}

.values-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--charcoal);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--charcoal);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.2);
}

.value-card h3 {
    color: var(--charcoal);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

/* Services Section */
.services-section {
    padding: 80px 0;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-item {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-top: 4px solid var(--charcoal);
    transition: transform 0.3s ease;
    max-width: 600px;
    width: 100%;
}

.service-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.15);
}

/* Staggered layout for desktop */
@media (min-width: 769px) {
    .service-item.service-left {
        margin-left: 0;
        margin-right: 300px;
        align-self: flex-start;
    }
    
    .service-item.service-right {
        margin-left: 300px;
        margin-right: 0;
        align-self: flex-end;
    }
}

.service-item h2 {
    color: var(--charcoal);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-icon {
    font-size: 2rem;
}

.service-item p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.service-item ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.service-item li {
    padding-left: 25px;
    position: relative;
}

.service-item li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h2 {
    color: var(--charcoal);
    margin-bottom: 20px;
}

.contact-details {
    margin-top: 30px;
}

.contact-detail {
    margin-bottom: 30px;
}

.contact-detail h3 {
    color: var(--charcoal);
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 600;
}

.contact-detail a {
    color: var(--primary-red);
    text-decoration: none;
}

.contact-detail a:hover {
    text-decoration: underline;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--light-gray);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
}

.contact-form-wrapper h2 {
    color: var(--charcoal);
    margin-bottom: 20px;
}

/* Login Section */
.login-section {
    padding: 80px 0;
    background-color: var(--off-white);
    min-height: calc(100vh - 300px);
    display: flex;
    align-items: center;
}

.login-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.login-box {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    max-width: 450px;
    width: 100%;
}

.login-box h1 {
    color: var(--charcoal);
    margin-bottom: 10px;
    text-align: center;
}

.login-subtitle {
    text-align: center;
    color: var(--medium-gray);
    margin-bottom: 30px;
}

.login-footer {
    margin-top: 20px;
    text-align: center;
}

.login-footer a {
    color: var(--primary-red);
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

.alert {
    padding: 12px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Control Panel */
.control-section {
    padding: 80px 0;
    background-color: var(--off-white);
    min-height: calc(100vh - 300px);
}

.control-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--charcoal);
}

.control-header h1 {
    color: var(--charcoal);
}

.control-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.control-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.control-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.control-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.2);
}

.control-card h2 {
    color: var(--charcoal);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.control-card p {
    color: var(--medium-gray);
    margin-bottom: 20px;
}

/* Settings Page Styles */
.settings-container {
    max-width: 900px;
    margin: 0 auto;
}

.settings-section {
    background-color: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.settings-section h2 {
    color: var(--charcoal);
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.settings-section p {
    color: var(--medium-gray);
    margin-bottom: 30px;
}

/* Font Selector Styles */
.font-selector-container {
    margin-bottom: 30px;
}

.font-selector-container label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--charcoal);
}

.font-selector {
    width: 100%;
    max-width: 300px;
    padding: 12px 15px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    background-color: var(--white);
    font-size: 1rem;
    color: var(--text-dark);
    transition: border-color 0.3s ease;
}

.font-selector:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.font-preview {
    margin-top: 20px;
    padding: 20px;
    background-color: var(--off-white);
    border-radius: 8px;
    border: 1px solid var(--light-gray);
}

.font-preview p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.color-palette-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.color-well-pair {
    display: flex;
    align-items: center;
    background-color: var(--off-white);
    padding: 12px;
    border-radius: 6px;
    border: 1px solid var(--light-gray);
}

.color-well-label {
    flex: 1;
    margin-right: 15px;
}

.color-well-label label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.color-wells {
    display: flex;
    gap: 12px;
    align-items: center;
}

.color-well {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.color-well.default {
    opacity: 0.7;
}

.color-preview {
    width: 35px;
    height: 35px;
    border-radius: 6px;
    border: 1px solid var(--light-gray);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.color-well span {
    font-size: 0.75rem;
    color: var(--medium-gray);
    font-weight: 500;
}

.color-picker {
    width: 35px !important;
    height: 35px;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    cursor: pointer;
    background-color: transparent;
}

.color-picker::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-picker::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
}

.color-hex-input {
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    padding: 3px 6px;
    font-size: 0.75rem;
    width: 65px;
    text-align: center;
    font-family: monospace;
}

.settings-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.settings-actions .btn {
    min-width: 150px;
}

/* Footer */
.site-footer {
    background-color: var(--charcoal);
    color: var(--white);
    padding: 50px 0 20px;
    border-top: 3px solid var(--primary-red);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--primary-red);
    margin-bottom: 15px;
}

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

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-red);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
}

/* Services Management */
.services-management {
    margin-top: 30px;
}

.management-section {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.section-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-gray);
}

.section-header h2 {
    color: var(--charcoal);
    font-size: 1.5rem;
}

.service-form .form-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.services-table-wrapper {
    overflow-x: auto;
}

.services-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.services-table thead {
    background-color: var(--charcoal);
    color: var(--white);
}

.services-table th,
.services-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.services-table tbody tr:hover {
    background-color: var(--off-white);
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-active {
    background-color: #d4edda;
    color: #155724;
}

.status-inactive {
    background-color: #f8d7da;
    color: #721c24;
}

.role-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.role-admin {
    background-color: #e8d4f8;
    color: #6a0dad;
}

.role-manager {
    background-color: #d1ecf1;
    color: #0c5460;
}

.role-user {
    background-color: #e9ecef;
    color: #495057;
}

/* Statistics Page - Modern Design */
.stats-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    min-height: 100vh;
    padding: 50px 0 80px 0;
    margin: 0 -20px; /* Negative margin to break out of main-content padding */
}

.container-wide {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.stats-header h1 {
    margin: 0 0 8px 0;
    color: var(--charcoal);
    font-size: 2.25rem;
    font-weight: 700;
}

.stats-subtitle {
    color: var(--medium-gray);
    margin: 0;
    font-size: 1.05rem;
}

/* Metric Cards */
.metrics-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.metric-card {
    background: var(--white);
    border-radius: 20px;
    padding: 28px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    pointer-events: none;
}

.metric-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.metric-card.primary { border-color: rgba(200, 16, 46, 0.2); }
.metric-card.success { border-color: rgba(40, 167, 69, 0.2); }
.metric-card.info { border-color: rgba(44, 62, 80, 0.2); }
.metric-card.purple { border-color: rgba(106, 13, 173, 0.2); }

.metric-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
}

.metric-card.success .metric-icon { background: linear-gradient(135deg, #28a745, #20873a); }
.metric-card.info .metric-icon { background: linear-gradient(135deg, var(--charcoal), var(--dark-charcoal)); }
.metric-card.purple .metric-icon { background: linear-gradient(135deg, #6a0dad, #520a85); }

.metric-content {
    flex: 1;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--medium-gray);
    margin-bottom: 8px;
    font-weight: 500;
}

.metric-value {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--charcoal);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.metric-change {
    font-size: 0.875rem;
    font-weight: 600;
}

.metric-change.positive { color: #28a745; }
.metric-change.negative { color: #dc3545; }

.metric-subtitle {
    font-size: 0.875rem;
    color: var(--medium-gray);
}

/* Chart Card */
.chart-card {
    background: var(--white);
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 40px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-gray);
}

.chart-header h2 {
    margin: 0;
    color: var(--charcoal);
    font-size: 1.25rem;
}

.chart-legend {
    display: flex;
    gap: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--medium-gray);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.chart-container {
    height: 280px;
    position: relative;
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 240px;
    gap: 4px;
    padding: 0 10px;
}

.bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.bar-container {
    width: 100%;
    height: 100%;
    display: flex;
    gap: 2px;
    align-items: flex-end;
    justify-content: center;
}

.bar {
    width: 45%;
    min-height: 4px;
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
    position: relative;
}

.bar:hover {
    opacity: 0.8;
    transform: scaleY(1.05);
}

.bar-visits {
    background: linear-gradient(180deg, var(--primary-red), var(--dark-red));
}

.bar-unique {
    background: linear-gradient(180deg, var(--charcoal), var(--dark-charcoal));
}

.bar-label {
    font-size: 0.75rem;
    color: var(--medium-gray);
    transform: rotate(-45deg);
    white-space: nowrap;
}

/* Two Column Layout */
.stats-two-column {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

/* Stats Card */
.stats-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.stats-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.stats-card.full-width {
    grid-column: 1 / -1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--light-gray);
}

.card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--charcoal);
}

.badge {
    background: var(--primary-red);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Popular Pages */
.popular-pages {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.popular-page-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    background: linear-gradient(135deg, var(--off-white), var(--light-gray));
    border-radius: 12px;
    transition: all 0.2s ease;
    border-left: 4px solid var(--primary-red);
}

.popular-page-item:hover {
    transform: translateX(6px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #fff, var(--off-white));
}

.page-info {
    flex: 1;
}

.page-title {
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 4px;
}

.page-url {
    font-size: 0.85rem;
    color: var(--medium-gray);
}

.page-visits {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.visit-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-red);
    line-height: 1;
}

.visit-label {
    font-size: 0.75rem;
    color: var(--medium-gray);
}

/* Services List Compact */
.services-list-compact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-compact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--off-white);
    border-radius: 8px;
    border-left: 4px solid var(--primary-red);
    transition: all 0.2s ease;
}

.service-compact-item:hover {
    background: var(--light-gray);
    transform: translateX(4px);
}

.service-compact-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-compact-icon {
    font-size: 1.2rem;
}

.service-compact-name {
    font-weight: 600;
    color: var(--charcoal);
}

.service-compact-count {
    background: var(--charcoal);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Activity Timeline */
.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 20px;
    background: var(--off-white);
    border-radius: 12px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.activity-item:hover {
    background: var(--light-gray);
    border-left-color: var(--primary-red);
    transform: translateX(4px);
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--charcoal), var(--dark-charcoal));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 4px;
}

.activity-meta {
    font-size: 0.85rem;
    color: var(--medium-gray);
}

.separator {
    margin: 0 8px;
}

.activity-time {
    font-size: 0.85rem;
    color: var(--medium-gray);
    white-space: nowrap;
}

/* Three Column Grid */
.stats-three-column {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.stats-card.compact {
    padding: 24px;
}

.card-header-small {
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-gray);
}

.card-header-small h4 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--charcoal);
}

.compact-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.compact-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: var(--off-white);
    border-radius: 8px;
}

.compact-label {
    font-size: 0.875rem;
    color: var(--medium-gray);
}

.compact-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-red);
}

.compact-value.small {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--charcoal);
}

.no-data {
    padding: 20px;
    text-align: center;
    color: var(--medium-gray);
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container-wide {
        padding: 0 30px;
    }
}

@media (max-width: 1024px) {
    .stats-two-column,
    .stats-three-column {
        grid-template-columns: 1fr;
    }
    
    .container-wide {
        padding: 0 25px;
    }
}

@media (max-width: 768px) {
    .stats-page {
        padding: 30px 0 60px 0;
    }
    
    .container-wide {
        padding: 0 20px;
    }
    
    .metrics-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .stats-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
    }
    
    .stats-header h1 {
        font-size: 1.75rem;
    }
    
    .metric-card {
        padding: 20px;
    }
    
    .metric-value {
        font-size: 2rem;
    }
    
    .chart-card {
        padding: 20px;
    }
    
    .chart-container {
        height: 200px;
    }
    
    .bar-chart {
        height: 160px;
    }
    
    .bar-label {
        font-size: 0.65rem;
    }
    
    .stats-card {
        padding: 20px;
    }
    
    .stats-two-column {
        gap: 16px;
    }
}

/* Media Library Styles */
.media-upload-section {
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.media-upload-section h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--charcoal);
}

.upload-area {
    border: 3px dashed var(--medium-gray);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    background: var(--off-white);
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 1000px;
    margin: 0 auto;
}

.upload-area.drag-over {
    border-color: var(--primary-red);
    background: rgba(200, 16, 46, 0.05);
    transform: scale(1.02);
}

.upload-content {
        display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.upload-icon {
    font-size: 3rem;
    opacity: 0.5;
}

.upload-area h3 {
    margin: 0;
    color: var(--charcoal);
    font-size: 1.25rem;
}

.upload-area p {
    margin: 0;
    color: var(--medium-gray);
    font-size: 0.95rem;
}

.upload-formats {
    font-size: 0.8rem;
    color: var(--medium-gray);
    margin-top: 5px;
}

.file-list {
    margin-top: 20px;
}

.file-list h3 {
    color: var(--charcoal);
    margin-bottom: 15px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: var(--off-white);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    margin-bottom: 10px;
}

.file-preview {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.file-details {
    flex: 1;
}

.file-name {
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 4px;
}

.file-size {
    font-size: 0.875rem;
    color: var(--medium-gray);
}

.btn-remove {
    background: var(--primary-red);
    color: var(--white);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-remove:hover {
    background: var(--dark-red);
    transform: scale(1.1);
}

/* Media Gallery */
.media-gallery-section {
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    padding: 30px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.media-gallery-section .section-header h2 {
    margin: 0 0 20px 0;
    color: var(--charcoal);
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    max-width: 100%;
    justify-content: center;
}

@media (min-width: 769px) {
    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 400px));
        justify-content: center;
    }
}

.media-item {
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    max-width: 400px;
}

.media-item:hover {
    border-color: var(--primary-red);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.media-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--light-gray);
}

.media-thumbnail img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.media-item:hover .media-thumbnail img {
    transform: translate(-50%, -50%) scale(1.05);
}

.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.media-item:hover .media-overlay {
    opacity: 1;
}

.btn-icon {
    background: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-icon:hover {
    transform: scale(1.1);
    background: var(--off-white);
}

.btn-delete-img {
    background: var(--primary-red);
}

.btn-delete-img:hover {
    background: var(--dark-red);
}

.media-info {
    padding: 15px;
}

.media-name {
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.media-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--medium-gray);
    margin-bottom: 8px;
}

.media-dimensions {
    font-size: 0.85rem;
    color: var(--charcoal);
    font-weight: 600;
    margin-bottom: 8px;
    padding: 4px 8px;
    background: var(--off-white);
    border-radius: 4px;
    display: inline-block;
}

.media-url input {
    width: 100%;
    padding: 6px 8px;
    font-size: 0.75rem;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    background: var(--off-white);
    font-family: monospace;
    cursor: pointer;
}

.media-url input:focus {
    outline: none;
    border-color: var(--primary-red);
    background: var(--white);
}

.no-images {
    text-align: center;
    padding: 60px 20px;
    color: var(--medium-gray);
}

.no-images-icon {
    font-size: 5rem;
    opacity: 0.3;
    margin-bottom: 20px;
}

.no-images p {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .media-thumbnail {
        height: 150px;
    }
    
    .upload-area {
        padding: 20px;
    }
    
    .upload-icon {
        font-size: 3rem;
    }
}

/* Alert Messages */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 1rem;
    line-height: 1.5;
    animation: slideDown 0.3s ease-out;
}

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

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 2px solid #28a745;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

.alert-error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border: 2px solid var(--primary-red);
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.2);
}

/* Messages Page */
.message-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    background: var(--white);
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.filter-tab {
    padding: 10px 20px;
    text-decoration: none;
    color: var(--medium-gray);
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: transparent;
}

.filter-tab:hover {
    color: var(--charcoal);
    background: var(--off-white);
    transform: translateY(-1px);
}

.filter-tab.active {
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
}

.messages-section {
    background: transparent;
    border: none;
    padding: 0;
}

.messages-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.message-card {
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.message-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--light-gray);
    transition: all 0.3s ease;
}

.message-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.message-card:hover::before {
    width: 8px;
}

.message-card.unread {
    border-color: rgba(200, 16, 46, 0.3);
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.03) 0%, var(--white) 100%);
}

.message-card.unread::before {
    background: linear-gradient(180deg, var(--primary-red), var(--dark-red));
    width: 6px;
}

.message-card.read::before {
    background: #28a745;
}

.message-card.archived {
    opacity: 0.8;
    background: var(--off-white);
}

.message-card.archived::before {
    background: var(--medium-gray);
}

.messages-bulk-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--off-white);
    border: 2px solid var(--light-gray);
    border-radius: 10px;
}

.select-all-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
    color: var(--charcoal);
}

.select-all-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.btn-delete-selected:not(:disabled) {
    background: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
}

.btn-delete-selected:not(:disabled):hover {
    background: var(--dark-red);
    border-color: var(--dark-red);
}

.message-checkbox {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    cursor: pointer;
}

.message-checkbox input.msg-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.message-checkbox .check-label {
    display: none;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--light-gray);
}

.message-from {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.status-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}

.status-indicator.status-unread {
    background: var(--primary-red);
    box-shadow: 0 0 12px rgba(200, 16, 46, 0.6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 12px rgba(200, 16, 46, 0.6);
    }
    50% {
        box-shadow: 0 0 20px rgba(200, 16, 46, 0.8);
    }
}

.status-indicator.status-read {
    background: #28a745;
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.4);
}

.status-indicator.status-archived {
    background: var(--medium-gray);
}

.message-from strong {
    color: var(--charcoal);
    font-size: 1.15rem;
    font-weight: 700;
}

.message-email {
    color: var(--medium-gray);
    font-size: 0.9rem;
    background: var(--off-white);
    padding: 2px 8px;
    border-radius: 4px;
}

.message-date {
    color: var(--medium-gray);
    font-size: 0.875rem;
    white-space: nowrap;
    background: var(--off-white);
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 600;
}

.message-phone {
    color: var(--charcoal);
    font-size: 0.95rem;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
    font-weight: 600;
}

.message-subject {
    font-weight: 700;
    color: var(--charcoal);
    font-size: 1.1rem;
    margin-bottom: 14px;
    padding: 10px 14px;
    background: linear-gradient(135deg, var(--off-white), var(--light-gray));
    border-radius: 8px;
    border-left: 4px solid var(--primary-red);
}

.message-body {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 18px;
    padding: 20px;
    background: var(--white);
    border-radius: 10px;
    border: 2px solid var(--light-gray);
    font-size: 1rem;
}

.message-meta {
    font-size: 0.875rem;
    color: var(--medium-gray);
    font-style: italic;
    margin-bottom: 16px;
    padding: 8px 12px;
    background: var(--off-white);
    border-radius: 6px;
    display: inline-block;
}

.message-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid var(--light-gray);
}

.btn-action {
    padding: 10px 18px;
    font-size: 0.9rem;
    border: 2px solid var(--light-gray);
    background: var(--white);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    color: var(--charcoal);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-mark-read {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border-color: #28a745;
    color: #155724;
}

.btn-mark-read:hover {
    background: linear-gradient(135deg, #c3e6cb, #b1dfbb);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-archive {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    border-color: #17a2b8;
    color: #0c5460;
}

.btn-archive:hover {
    background: linear-gradient(135deg, #bee5eb, #abdde5);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

.btn-unarchive {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-color: #ffc107;
    color: #856404;
}

.btn-unarchive:hover {
    background: linear-gradient(135deg, #ffeaa7, #ffd93d);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.btn-delete-msg {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    border-color: var(--primary-red);
    color: var(--dark-red);
}

.btn-delete-msg:hover {
    background: linear-gradient(135deg, #f5c6cb, #f1b0b7);
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
}

.no-messages {
    text-align: center;
    padding: 80px 20px;
    color: var(--medium-gray);
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.no-messages-icon {
    font-size: 6rem;
    opacity: 0.3;
    margin-bottom: 20px;
}

.no-messages p {
    font-size: 1.2rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .message-filters {
        flex-wrap: wrap;
    }
    
    .filter-tab {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .message-header {
        flex-direction: column;
    }
    
    .message-from {
        width: 100%;
    }
    
    .message-actions {
        flex-direction: column;
    }
    
    .btn-action {
        width: 100%;
    }
}

.btn-small {
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.85rem;
    text-decoration: none;
    border-radius: 4px;
    margin-right: 5px;
    transition: all 0.3s ease;
}

.btn-edit {
    background-color: #007bff;
    color: var(--white);
}

.btn-edit:hover {
    background-color: #0056b3;
}

.btn-items {
    background-color: #28a745;
    color: var(--white);
}

.btn-items:hover {
    background-color: #1e7e34;
}

.btn-delete {
    background-color: #dc3545;
    color: var(--white);
}

.btn-delete:hover {
    background-color: #c82333;
}

.btn-sort {
    background: none;
    border: 1px solid var(--medium-gray);
    color: var(--medium-gray);
    cursor: pointer;
    padding: 4px 8px;
    margin: 0 2px;
    border-radius: 3px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-sort:hover {
    background-color: var(--charcoal);
    color: var(--white);
    border-color: var(--charcoal);
}

/* Emoji Picker Dropdown */
.emoji-picker-container {
    position: relative;
}

.emoji-dropdown {
        display: none;
        position: absolute;
    top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
    border: 2px solid var(--charcoal);
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 5px;
    padding: 10px;
    grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
    gap: 5px;
}

.emoji-item {
    font-size: 1.8rem;
    text-align: center;
    padding: 8px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.emoji-item:hover {
    background-color: var(--off-white);
    border-color: var(--primary-red);
    transform: scale(1.15);
}

input[readonly] {
    cursor: pointer;
    background-color: var(--white);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        background-color: var(--dark-red);
        z-index: 9999;
        overflow-y: auto;
    }
    
    .main-nav.active {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    /* Full-screen mobile menu with centered logo */
    .main-nav.active::before {
        content: '';
        position: absolute;
        top: 60px;
        left: 50%;
        transform: translateX(-50%);
        background-image: url('../images/logo.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        height: 80px;
        width: 120px;
        min-width: 120px;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 20px;
        margin-top: 180px;
        margin-bottom: 80px;
        align-items: center;
        padding: 30px 20px;
        max-height: calc(100vh - 300px);
        overflow-y: auto;
    }
    
    .main-nav li {
        border: none;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .main-nav a {
        display: block;
        padding: 18px 40px;
        color: var(--white);
        font-size: 1.2rem;
        font-weight: 600;
        text-align: center;
        border: 2px solid var(--white);
        border-radius: 8px;
        min-width: 200px;
        transition: all 0.3s ease;
        text-decoration: none;
    }
    
    .main-nav a:hover,
    .main-nav a.active {
        background-color: var(--white);
        color: var(--dark-red);
        transform: scale(1.05);
    }
    
    /* Style admin links in mobile menu differently */
    .main-nav a[href*="control"],
    .main-nav a[href*="statistics"],
    .main-nav a[href*="manage-services"],
    .main-nav a[href*="messages"],
    .main-nav a[href*="media-library"],
    .main-nav a[href*="manage-users"],
    .main-nav a[href*="settings"],
    .main-nav a[href*="logout"],
    .main-nav .admin-mobile-link .mobile-nav-form button {
        background-color: rgba(255, 255, 255, 0.1);
        border: 2px solid rgba(255, 255, 255, 0.5);
        border-radius: 8px;
        font-size: 1rem;
        color: var(--white);
        min-width: 200px;
    }
    
    .main-nav a[href*="control"]:hover,
    .main-nav a[href*="statistics"]:hover,
    .main-nav a[href*="manage-services"]:hover,
    .main-nav a[href*="messages"]:hover,
    .main-nav a[href*="media-library"]:hover,
    .main-nav a[href*="manage-users"]:hover,
    .main-nav a[href*="settings"]:hover,
    .main-nav a[href*="logout"]:hover,
    .main-nav .admin-mobile-link .mobile-nav-form button:hover,
    .main-nav .admin-mobile-link .mobile-nav-form button.active {
        background-color: rgba(255, 255, 255, 0.2);
        color: var(--white);
    }
    
    /* Show admin links in mobile menu */
    .main-nav .admin-mobile-link {
        display: flex !important;
        width: 100%;
        justify-content: center;
    }
    
    /* Ensure admin links are visible in mobile menu */
    .main-nav.active .admin-mobile-link {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Force admin links to be visible in mobile menu */
    @media (max-width: 768px) {
        .main-nav .admin-mobile-link {
            display: flex !important;
            visibility: visible !important;
            opacity: 1 !important;
            height: auto !important;
            width: 100% !important;
        }
    }
    
    /* Close button styling for mobile menu */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        background-color: var(--white);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
        background-color: var(--white);
    }
    
    /* Ensure mobile menu toggle is visible and styled */
    .mobile-menu-toggle {
        z-index: 10000;
        position: relative;
    }
    
    /* When mobile menu is active, position toggle button */
    .site-header .mobile-menu-toggle.active {
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 10001;
    }
    
    .site-header .mobile-menu-toggle.active span {
        background-color: var(--white);
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .content-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    /* Control page mobile centering */
    .control-section .container {
        text-align: center;
    }
    
    .control-header {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        text-align: center;
    }
    
    .control-header h1 {
        text-align: center;
        width: 100%;
    }
    
    .control-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
    }
    
    .control-actions span {
        text-align: center;
        display: block;
    }
    
    .control-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .control-card {
        width: 100%;
        max-width: 350px;
        text-align: center;
    }
    
    .control-card h2 {
        text-align: center;
    }
    
    .control-card p {
        text-align: center;
    }
    
    /* Settings page mobile styles */
    .color-palette-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .color-well-pair {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .color-well-label {
        margin-right: 0;
        text-align: center;
    }
    
    .color-wells {
        justify-content: center;
        gap: 20px;
    }
    
    .settings-section {
        padding: 20px;
    }
    
    .settings-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .settings-actions .btn {
        width: 100%;
        max-width: 200px;
    }
    
    .service-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .emoji-dropdown {
        grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
        max-height: 200px;
    }
    
    .services-table {
        font-size: 0.85rem;
    }
    
    .services-table th,
    .services-table td {
        padding: 8px;
    }
    
    /* Services mobile layout */
    .service-item.service-left,
    .service-item.service-right {
        margin-left: 0;
        margin-right: 0;
        align-self: center;
        max-width: 100%;
    }
    
    .service-item ul {
        grid-template-columns: 1fr;
        justify-items: start;
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}


