/* Qubic Network AB - Modern Green Clean Design */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables for consistent theming */
:root {
    /* Colors - Based on external reference */
    --primary-color: #05af93;
    --primary-light: #2bc4aa;
    --primary-dark: #049a81;
    --secondary-color: #d2583e;
    --accent-color: #ff6900;
    --text-color: #333333;
    --text-light: #666666;
    --text-white: #ffffff;
    --background-color: #ffffff;
    --background-light: #f8f9fa;
    --background-dark: #1a1a1a;
    --border-color: #e0e0e0;
    --shadow-light: rgba(5, 175, 147, 0.1);
    --shadow-medium: rgba(5, 175, 147, 0.2);
    --shadow-dark: rgba(5, 175, 147, 0.3);
    
    /* Selection colors */
    --selection-bg: #05af93;
    --selection-text: #ffffff;
    
    /* Typography - Open Sans as primary */
    --font-primary: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-secondary: 'Inter', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Border radius - matching reference site */
    --radius-sm: 0.25rem;
    --radius-md: 4px;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

/* Reset and Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none !important;
}

/* Selection styling - matching reference site */
::selection {
    background-color: var(--selection-bg);
    color: var(--selection-text);
    text-shadow: none;
}

::-moz-selection {
    background-color: var(--selection-bg);
    color: var(--selection-text);
    text-shadow: none;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    line-height: 1.7;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 120px; /* Account for fixed header on desktop */
}

@media (max-width: 768px) {
    body {
        padding-top: 60px; /* Account for fixed header on mobile */
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: var(--font-size-base);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-normal);
}

a:hover {
    color: var(--primary-dark);
}

/* Image Styling - Based on reference site */
img {
    vertical-align: middle;
    border: 0;
    height: auto;
    max-width: 100%;
    border-radius: var(--radius-md);
}

.image-wrapper {
    border-radius: var(--radius-md);
    box-shadow: none;
    overflow: hidden;
}

.image-wrapper img {
    transition: var(--transition-normal);
}

.image-wrapper:hover img {
    transform: scale(1.02);
}

/* Button Styles - Updated with reference colors */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: var(--font-size-base);
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
    min-width: 120px;
    box-shadow: 0 2px 4px var(--shadow-light);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-medium);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: var(--text-white);
}

.btn-secondary {
    background: var(--background-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
}

.btn-outline.active {
    background: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    min-width: 150px;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    min-width: 80px;
}

/* Modern Header */
header {
    background: #ffffff;
    background-color: #ffffff !important;
    opacity: 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid #e0e0e0;
    height: 120px; /* Desktop height */
}

@media (max-width: 768px) {
    header {
        height: 60px;
    }
}

.mobile-menu-toggle {
    display: none;
}

.mobile-overlay {
    display: none;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 120px;
    background: #ffffff;
    background-color: #ffffff !important;
    flex-direction: row;
    position: static;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    text-decoration: none;
}

.logo-img {
    height: 120px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.logo i {
    font-size: 2rem;
    color: var(--light-green);
}

/* Navigation - Desktop First */
nav {
    flex: 1;
    display: flex;
    justify-content: center;
    background: #ffffff;
    background-color: #ffffff !important;
    position: static;
    width: auto;
    height: auto;
}

nav ul {
    display: flex;
    flex-direction: row;
    list-style: none;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    background: #ffffff;
    background-color: #ffffff !important;
}

nav ul li {
    display: inline-block;
    width: auto;
    border-bottom: none;
}

nav a {
    font-weight: 500;
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-small);
    transition: var(--transition);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: auto;
}

nav a:hover {
    background: var(--bg-green);
    color: var(--primary-green);
}

nav a.active {
    background: var(--primary-green);
    color: var(--white);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/src/image/poza.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.hero-text {
    max-width: 800px;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Section Styles */
.section {
    padding: 4rem 0;
}

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

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Card Styles */
.card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--border-gray);
    height: 100%;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--white);
    font-size: 1.5rem;
}

.card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

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

.service-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--border-gray);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-green);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    background: var(--bg-green);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: var(--primary-green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

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

.footer-section a {
    color: var(--medium-gray);
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--light-green);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--dark-gray);
    color: var(--medium-gray);
}

/* Icon Container Styles */
.icon-container {
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
    background: linear-gradient(45deg, rgba(5, 175, 147, 0.1), rgba(210, 88, 62, 0.1));
    padding: 15px;
    border-radius: 50%;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.icon-container:hover {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(45deg, rgba(5, 175, 147, 0.2), rgba(210, 88, 62, 0.2));
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(5, 175, 147, 0.3);
}

.emoji-icon {
    position: absolute;
    top: -8px;
    left: -8px;
    font-size: 1.3em;
    z-index: 2;
    animation: gentleBounce 3s infinite;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 2px;
    border: 1px solid var(--primary-color);
}

.main-icon {
    font-size: 2.2em;
    color: var(--primary-color);
    z-index: 1;
    position: relative;
    transition: all 0.3s ease;
}

.icon-container:hover .main-icon {
    color: var(--accent-color);
    text-shadow: 0 0 20px rgba(5, 175, 147, 0.5);
    transform: scale(1.1);
}

.icon-container:hover .emoji-icon {
    animation: sparkle 0.8s ease-in-out;
    transform: scale(1.2);
}

@keyframes gentleBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

@keyframes sparkle {
    0% { transform: rotate(0deg) scale(1); filter: brightness(1); }
    25% { transform: rotate(90deg) scale(1.1); filter: brightness(1.3); }
    50% { transform: rotate(180deg) scale(1.2); filter: brightness(1.5); }
    75% { transform: rotate(270deg) scale(1.1); filter: brightness(1.3); }
    100% { transform: rotate(360deg) scale(1); filter: brightness(1); }
}

/* Card hover effects */
.card:hover .icon-container {
    transform: scale(1.15);
    animation: glow 2s infinite alternate;
}

.card:hover .emoji-icon {
    animation: pulse 0.6s ease-in-out infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes glow {
    0% { box-shadow: 0 0 20px rgba(5, 175, 147, 0.2); }
    100% { box-shadow: 0 0 30px rgba(5, 175, 147, 0.4); }
}

/* Responsive Design */

/* Card hover effects */
.card:hover .icon-container {
    transform: scale(1.15);
}

.card:hover .emoji-icon {
    animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Responsive Design */

/* Desktop Navigation - Ensure horizontal layout on larger screens */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .mobile-overlay {
        display: none !important;
    }
    
    nav {
        position: static !important;
        width: auto !important;
        height: auto !important;
        left: auto !important;
        top: auto !important;
        background: #ffffff !important;
        box-shadow: none !important;
        overflow-y: visible !important;
        z-index: auto !important;
        flex: 1;
        display: flex;
        justify-content: center;
    }
    
    nav ul {
        display: flex !important;
        flex-direction: row !important;
        gap: 2rem !important;
        padding: 0 !important;
        align-items: center;
        justify-content: center;
        margin: 0;
    }
    
    nav ul li {
        width: auto !important;
        border-bottom: none !important;
        display: inline-block;
    }
    
    nav ul li a {
        padding: 0.5rem 1rem !important;
        font-size: inherit !important;
        display: inline-flex !important;
        align-items: center;
        gap: 0.5rem;
        width: auto !important;
        text-align: left !important;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: 60px;
        padding: 0 1rem;
        position: relative;
    }
    
    .logo-img {
        height: 70px;
        max-width: 200px;
    }

    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--primary-color);
        cursor: pointer;
        padding: 0.5rem;
        border-radius: 4px;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle:hover {
        background: rgba(70, 130, 180, 0.1);
    }
    
    nav {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 280px;
        height: calc(100vh - 60px);
        background: white;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    
    nav.mobile-nav-open {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }
    
    nav ul li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    
    nav ul li:last-child {
        border-bottom: none;
    }
    
    nav ul li a {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
        color: #333;
        transition: all 0.3s ease;
    }
    
    nav ul li a:hover,
    nav ul li a.active {
        background: rgba(70, 130, 180, 0.1);
        color: var(--primary-color);
    }
    
    .mobile-overlay {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100vw;
        height: calc(100vh - 60px);
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    .mobile-overlay.show {
        display: block;
    }
    
    .logo-img {
        height: 75px;
        max-width: 200px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        min-height: 60vh;
        padding: 2rem 1rem;
        margin-top: 60px; /* Account for fixed mobile header */
    }
    
    .hero-text {
        max-width: 100%;
        margin-bottom: 2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .contact-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-actions .btn {
        text-align: center;
        width: 100%;
    }
    
    #google-map {
        height: 300px !important;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    /* Carbon badge mobile styles */
    .carbon-rating {
        padding: 0.5rem;
    }
    
    .carbon-grade {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
        margin-right: 0.5rem;
    }
    
    .carbon-title {
        font-size: 0.8rem;
    }
    
    .carbon-desc {
        font-size: 0.7rem;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .btn-large {
        padding: 1rem;
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .header-container {
        padding: 0 0.5rem;
    }
    
    nav {
        width: 90vw;
    }
    

    .hero-content {
        min-height: 50vh;
        padding: 1.5rem 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .contact-location {
        padding: var(--spacing-xl) 0;
    }
    
    .contact-info {
        padding: var(--spacing-lg);
    }
    
    .contact-info h2 {
        font-size: 1.5rem;
    }
    
    .contact-detail {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Force mobile hero visibility - highest priority overrides */
    main section:first-child {
        min-height: 70vh !important;
        padding: 4rem 0 !important;
    }
    
    main section:first-child h1 {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
        display: block !important;
        visibility: visible !important;
    }
    
    main section:first-child p {
        font-size: 1.1rem !important;
        line-height: 1.5 !important;
        margin-bottom: 2rem !important;
        display: block !important;
        visibility: visible !important;
    }
    
    /* Extra small mobile devices */
    .hero,
    .hero-devops,
    .hero-services,
    section[style*="min-height: 80vh"] {
        min-height: 60vh !important;
        padding: 3rem 0 !important;
    }
    
    .hero-content,
    .hero-content-services,
    div[style*="min-height: 60vh"] {
        min-height: 40vh !important;
        padding: 1.5rem 1rem !important;
    }
    
    .hero h1,
    h1[style*="font-size: 3.5rem"] {
        font-size: 1.8rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .hero p,
    p[style*="font-size: 1.4rem"] {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Specific hero page adjustments */
    .hero-gdpr {
        min-height: 50vh !important;
        padding: 2rem 0 !important;
    }
    
    /* Basic hero visibility for fade-in elements */
    .hero .fade-in {
        opacity: 1 !important;
        animation: none !important;
    }
    
    /* Force auto-resize hero text for mobile - override inline styles */
    .hero h1[style],
    .hero-text h1[style],
    section[style] h1[style] {
        font-size: clamp(1.5rem, 5vw, 2.5rem) !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }
    
    .hero p[style],
    .hero-text p[style],
    section[style] p[style] {
        font-size: clamp(0.9rem, 3.5vw, 1.2rem) !important;
        line-height: 1.4 !important;
        margin-bottom: 1.5rem !important;
    }
}

/* Carbon Rating Badge Styles */
.carbon-badge {
    margin-top: 1rem;
}

.carbon-link {
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.carbon-rating {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #00ff87 0%, #60efff 100%);
    padding: 0.75rem;
    border-radius: 8px;
    color: #1a1a1a;
    font-weight: bold;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 255, 135, 0.2);
}

.carbon-rating:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 135, 0.3);
}

.carbon-grade {
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a1a;
    font-size: 1.5rem;
    font-weight: 900;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.carbon-text {
    display: flex;
    flex-direction: column;
}

.carbon-title {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
}

.carbon-desc {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.8;
    line-height: 1.2;
}

.carbon-info {
    font-size: 0.8rem;
    color: #666;
    margin: 0.5rem 0 0 0;
    font-style: italic;
}

/* Mobile Responsive Styles for Services and Contact Pages */
@media (max-width: 768px) {
    /* Services page two-column layout becomes single column */
    .services-section div[style*="grid-template-columns: 1fr 1fr"] {
        display: block !important;
        gap: 0 !important;
    }
    
    .services-table-left,
    .services-table-right {
        margin-bottom: 3rem;
    }
    
    .services-table-right {
        margin-bottom: 0;
    }
    
    /* Services pricing container */
    .services-pricing {
        padding: 1.5rem 1rem !important;
        margin: 0 1rem !important;
        max-width: calc(100vw - 2rem) !important;
    }
    
    /* Service rows mobile optimization */
    .service-row {
        padding: 1rem 0 !important;
        gap: 1rem !important;
    }
    
    .service-name {
        font-size: 0.9rem !important;
    }
    
    .service-name div {
        font-size: 0.8rem !important;
    }
    
    .price {
        font-size: 1.1rem !important;
    }
    
    /* Contact page mobile styles */
    .contact-location {
        padding: 2rem 1rem !important;
    }
    
    .contact-location h1 {
        font-size: 2.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    .contact-location p {
        font-size: 1.1rem !important;
    }
    
    .contact-info {
        padding: 1.5rem !important;
    }
    
    .contact-info h2 {
        font-size: 1.5rem !important;
    }
    
    .contact-detail {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    .contact-form {
        padding: 1.5rem !important;
    }
    
    .contact-form h2 {
        font-size: 1.5rem !important;
    }
    
    #google-map {
        height: 250px !important;
        margin: 1rem 0 !important;
    }
}

/* Mobile header/menu size tweaks */
@media (max-width: 768px) {
    .header-container {
        height: auto;
        padding: 0.5rem 1rem;
        gap: 0.25rem; /* tighten space between logo and menu */
    }
/* prevent nav from stretching vertically on stacked layout */
    nav { flex: 0 0 auto; }
    nav ul {
        gap: 0.4rem;
    }
    nav a {
        font-size: 0.9rem;
        padding: 0.3rem 0.6rem;
    }
    nav a i {
        font-size: 0.95rem;
        margin-right: 0.35rem;
    }
}

@media (max-width: 480px) {
nav { flex: 0 0 auto; }
    nav ul {
        gap: 0.25rem;
    }
    nav a {
        font-size: 0.85rem;
        padding: 0.2rem 0.45rem;
    }
    nav a i {
        font-size: 0.9rem;
        margin-right: 0.3rem;
    }
}

@media (max-width: 480px) {
    /* Services section mobile padding */
    .services-section {
        padding: 2rem 0.5rem !important;
    }
    
    .services-pricing {
        padding: 1rem 0.5rem !important;
        margin: 0 0.5rem !important;
        max-width: calc(100vw - 1rem) !important;
    }
    
    /* Service table headers mobile */
    .services-table-left div[style*="border-bottom: 3px solid"],
    .services-table-right div[style*="border-bottom: 3px solid"] {
        gap: 1rem !important;
        padding: 0.5rem 0 !important;
        font-size: 1rem !important;
    }
    
    /* Service rows mobile */
    .service-row {
        gap: 0.5rem !important;
        padding: 0.75rem 0 !important;
        margin-bottom: 0.75rem !important;
    }
    
    .service-name {
        font-size: 0.85rem !important;
    }
    
    .service-name div {
        font-size: 0.75rem !important;
        margin-top: 0.25rem !important;
    }
    
    .price {
        font-size: 1rem !important;
    }
    
    /* Comprehensive hero section mobile overrides */
    .hero,
    .hero-devops,
    .hero-services,
    section[style*="min-height: 80vh"],
    .hero[style*="min-height: 80vh"] {
        min-height: 70vh !important;
        padding: 4rem 0 !important;
    }
    
    .hero-content,
    .hero-content-services,
    div[style*="min-height: 60vh"],
    .hero-content[style*="min-height: 60vh"] {
        min-height: 50vh !important;
        padding: 2rem 1rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .hero h1,
    h1[style*="font-size: 3.5rem"] {
        font-size: 2.2rem !important;
        margin-bottom: 1rem !important;
        line-height: 1.2 !important;
    }
    
    .hero p,
    p[style*="font-size: 1.4rem"] {
        font-size: 1.1rem !important;
        margin-bottom: 2rem !important;
        line-height: 1.5 !important;
    }
    
    .hero-buttons,
    div[style*="display: flex"][style*="gap: 1rem"] {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
        width: 100% !important;
    }
    
    .hero-buttons .btn,
    .hero-buttons a,
    .btn-large {
        width: 100% !important;
        max-width: 280px !important;
        text-align: center !important;
        justify-content: center !important;
        padding: 0.875rem 1.5rem !important;
        font-size: 1rem !important;
        margin: 0 !important;
    }
    
    /* Contact page mobile */
    .contact-location {
        padding: 1.5rem 0.5rem !important;
    }
    
    .contact-location h1 {
        font-size: 2rem !important;
    }
    
    .contact-location p {
        font-size: 1rem !important;
    }
    
    .contact-grid {
        margin: 0 0.5rem !important;
        gap: 1.5rem !important;
    }
    
    .contact-info,
    .contact-form {
        padding: 1rem !important;
        margin: 0 !important;
    }
    
    .contact-info h2,
    .contact-form h2 {
        font-size: 1.25rem !important;
        margin-bottom: 1rem !important;
    }
    
    .contact-detail {
        margin-bottom: 0.75rem !important;
    }
    
    .contact-detail i {
        font-size: 1rem !important;
        width: 20px !important;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.6rem !important;
        font-size: 16px !important;
    }
    
    .btn {
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem !important;
    }
    
    #google-map {
        height: 200px !important;
    }
}

@media (max-width: 768px) {
    .hero p {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 2rem 0;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    transform: translateX(-20px);
    opacity: 0;
    animation: slideInLeft 0.6s ease forwards;
}

@keyframes slideInLeft {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Success/Error Messages */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.alert-error {
    background: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

/* Loading Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-gray);
    border-top: 2px solid var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff; /* white background as requested */
    color: var(--text-color);
    z-index: 2000;
    box-shadow: 0 -6px 16px rgba(0,0,0,0.08);
    border-top: 1px solid var(--border-color);
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    animation: cookieSlideUp var(--transition-normal);
}

.cookie-banner .cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.cookie-banner .cookie-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cookie-banner .cookie-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
    letter-spacing: 0.2px;
}

.cookie-banner .cookie-title::before {
    content: '🍪';
    margin-right: 0.5rem;
}

.cookie-banner .cookie-copy {
    opacity: 0.95;
    color: var(--text-light);
    line-height: 1.5;
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-btn {
    border-radius: var(--radius-md);
    padding: 0.6rem 1rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-color);
    transition: var(--transition-normal);
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.cookie-btn:hover { opacity: 0.95; transform: translateY(-1px); }

.cookie-btn.cookie-accept {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    border: 1px solid var(--primary-dark);
    box-shadow: 0 2px 6px rgba(5,175,147,0.25);
}

.cookie-btn.cookie-accept:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
}

.cookie-btn.cookie-decline {
    background: transparent;
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.cookie-btn.cookie-decline:hover {
    background: var(--secondary-color);
    color: #fff;
}

.cookie-preferences {
    max-width: 1200px;
    margin: 0.25rem auto 1rem auto;
    background: #fafafa;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.75rem 2rem 1rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.cookie-pref-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0.25rem;
}

.cookie-pref-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-pref-actions { margin-top: 0.5rem; display: flex; justify-content: flex-end; }
.cookie-pref-actions .cookie-save { background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); color: #fff; border: 1px solid var(--primary-dark); box-shadow: 0 2px 6px rgba(5,175,147,0.25); }
.cookie-pref-actions .cookie-save:hover { transform: translateY(-2px); filter: brightness(1.03); }

/* Make save button match accept styling everywhere */
.cookie-btn.cookie-save { background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); color: #fff; border: 1px solid var(--primary-dark); box-shadow: 0 2px 6px rgba(5,175,147,0.25); }
.cookie-btn.cookie-save:hover { transform: translateY(-2px); filter: brightness(1.03); }

@media (max-width: 768px) {
    .cookie-banner .cookie-content { flex-direction: column; align-items: flex-start; padding: 1rem; }
    .cookie-actions { width: 100%; }
}

@keyframes cookieSlideUp {
    0% { 
        transform: translateY(100%); 
        opacity: 0; 
    }
    100% { 
        transform: translateY(0); 
        opacity: 1; 
    }
}

/* Cookie Icon - Fixed side icon after consent */
.cookie-icon {
    position: fixed;
    left: 20px;
    bottom: 20px;
    background: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: opacity var(--transition-normal);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.cookie-icon:hover {
    opacity: 0.9;
}

.cookie-icon-emoji {
    font-size: 1.2rem;
}

.cookie-icon-text {
    white-space: nowrap;
}

/* Mobile adjustments for cookie icon */
@media (max-width: 768px) {
    .cookie-icon {
        left: 15px;
        bottom: 15px;
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .cookie-icon-emoji {
        font-size: 1rem;
    }
    
    .cookie-modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 1rem;
    }
}

/* Cookie Settings Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.cookie-modal-content {
    background: #fff;
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: modalSlideIn 0.3s ease-out;
}

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

.cookie-modal-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-normal);
}

.cookie-modal-close:hover {
    background: var(--secondary-color);
    color: #fff;
}

.cookie-modal-body {
    padding: 1.5rem;
}

.cookie-modal-footer {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

@keyframes modalSlideIn {
    0% {
        transform: scale(0.8) translateY(-20px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .cookie-modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 1rem;
    }
}

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

/* Contact & Location Section */
.contact-location {
    background: var(--background-light);
    padding: var(--spacing-3xl) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: start;
}

.contact-info {
    background: var(--background-color);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 6px var(--shadow-light);
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    margin-top: var(--spacing-lg);
    font-size: var(--font-size-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.contact-info h3:first-child {
    margin-top: 0;
}

.contact-info p {
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-normal);
}

.contact-info a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.contact-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
    flex-wrap: wrap;
}

.map-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 6px var(--shadow-light);
}

#google-map {
    filter: grayscale(0%);
    transition: filter var(--transition-normal);
}

#google-map:hover {
    filter: grayscale(0%);
}

/* Responsive Design for Contact Section */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        height: auto;
        padding: 1rem 2rem;
    }
    
    nav {
        width: 100%;
    }
    
    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .contact-actions {
        flex-direction: column;
    }
    
    .contact-actions .btn {
        text-align: center;
    }
    
    #google-map {
        height: 300px !important;
    }
}

@media (max-width: 480px) {
    .contact-location {
        padding: var(--spacing-xl) 0;
    }
    
    .contact-info {
        padding: var(--spacing-lg);
    }
}

/* Home (index) mobile tweaks */
@media (max-width: 768px) {
    /* Reduce hero size and spacing on phones */
    .hero { min-height: 50vh !important; padding: 2rem 0 !important; }
    .hero-content { min-height: 35vh !important; padding: 0 1rem !important; }
    .hero h1 { font-size: 2.2rem !important; margin-bottom: 1rem !important; line-height: 1.2 !important; }
    .hero p { font-size: 1.05rem !important; margin-bottom: 1.25rem !important; line-height: 1.4 !important; }
    .hero-buttons { gap: 0.6rem !important; flex-direction: column !important; align-items: center !important; }
    .hero-buttons .btn { width: 100% !important; max-width: 280px !important; justify-content: center !important; }

    /* Icon rows mobile optimization */
    .icon-row { 
        padding: 1.5rem 1rem !important; 
        margin-bottom: 1.5rem !important; 
        flex-direction: column !important;
    }
    .icon-container { 
        width: 40px !important; 
        height: 40px !important; 
        font-size: 1.1rem !important; 
        margin-right: 0 !important;
        margin-bottom: 1rem !important;
    }
    .icon-content h3 {
        font-size: 1.3rem !important;
        margin-bottom: 0.75rem !important;
    }
    .icon-content p {
        font-size: 1rem !important;
        line-height: 1.5 !important;
    }
    
    /* Grid layout in Row 2 - stack on mobile */
    .services-grid-mobile {
        display: block !important;
        gap: 1.5rem !important;
    }
    .services-grid-mobile > div {
        margin-bottom: 1.5rem !important;
    }
    .services-grid-mobile > div:last-child {
        margin-bottom: 0 !important;
    }
    .icon-content h4 {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem !important;
    }
    .icon-content ul li,
    .icon-content p {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }
}

@media (max-width: 480px) {
    /* Extra small mobile screens - optimize for short displays */
    .hero { min-height: 40vh !important; padding: 1.5rem 0 !important; }
    .hero-content { min-height: 30vh !important; }
    .hero h1 { font-size: 1.8rem !important; }
    .hero p { font-size: 0.95rem !important; }
    

    .hero-buttons .btn { 
        padding: 0.75rem 1.5rem !important; 
        font-size: 1rem !important; 
    }
    
    /* Compact icon rows for small screens */
    .icon-row { 
        padding: 1rem !important; 
        margin-bottom: 1rem !important; 
    }
    .icon-content h3 {
        font-size: 1.2rem !important;
    }
    .icon-content p {
        font-size: 0.9rem !important;
    }
    .icon-content h4 {
        font-size: 1rem !important;
    }
    .section {
        padding: 2rem 0 !important;
    }
}

/* For very short mobile screens (landscape phones, small screens) */
@media (max-height: 600px) and (max-width: 768px) {
    .hero { min-height: 35vh !important; padding: 1rem 0 !important; }
    .hero-content { min-height: 25vh !important; }
    .hero h1 { font-size: 1.6rem !important; margin-bottom: 0.5rem !important; }
    .hero p { font-size: 0.9rem !important; margin-bottom: 1rem !important; }
    .hero-buttons { gap: 0.5rem !important; }
    .hero-buttons .btn { 
        padding: 0.6rem 1.2rem !important; 
        font-size: 0.9rem !important; 
    }
}

/* Mobile viewport and admin fixes */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
    
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .section {
        padding: 2rem 0 !important;
    }
    
    /* Admin specific mobile improvements */
    .admin-content {
        padding: 1rem;
    }
    
    .admin-content .row {
        margin: 0 -0.5rem;
    }
    
    .admin-content .col {
        padding: 0 0.5rem;
    }
}

/* ====================================
   ADMIN PANEL STYLES
   ==================================== */

/* Admin Panel Layout */
.admin-container {
    display: flex;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
}

.admin-sidebar {
    width: 250px;
    min-width: 250px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.admin-main {
    flex: 1;
    margin-left: 250px;
    padding: 2rem;
    background: #f8f9fa;
    min-height: 100vh;
    width: calc(100% - 250px);
}

/* Admin Sidebar Styling */
.admin-sidebar .logo-section {
    text-align: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.admin-sidebar .logo-section h2 {
    color: var(--secondary-color);
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.admin-sidebar .logo-section img {
    max-height: 50px;
    width: auto;
    margin-bottom: 0.5rem;
}

.admin-sidebar .nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-sidebar .nav-links li {
    margin: 0;
}

.admin-sidebar .nav-links a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-weight: 500;
}

.admin-sidebar .nav-links a:hover,
.admin-sidebar .nav-links a.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: var(--secondary-color);
    transform: translateX(5px);
}

.admin-sidebar .nav-links a i {
    margin-right: 12px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Admin Main Content */
.admin-header {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e9ecef;
}

.admin-header h1 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.75rem;
    font-weight: 600;
}

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

.admin-header .user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.admin-header .user-info i {
    color: var(--primary-color);
}

/* Admin Cards */
.admin-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(5, 175, 147, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.admin-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #2c3e50;
    padding: 1.75rem 2rem;
    border-bottom: 2px solid #e9ecef;
    position: relative;
}

.card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

.card-header h2,
.card-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: 0.3px;
}

.card-header i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.card-body {
    padding: 2.5rem;
}

/* Dashboard Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-card .stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-card .stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Forms */
.admin-form {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(5, 175, 147, 0.1);
    position: relative;
    overflow: hidden;
}

.admin-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.form-group label i {
    margin-right: 0.5rem;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafbfc;
    font-family: inherit;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(5, 175, 147, 0.15);
    transform: translateY(-2px);
}

.form-control:hover:not(:focus) {
    border-color: #c8d3db;
    background: white;
}

.form-control:invalid {
    border-color: #dc3545;
    background: #fff5f5;
}

.form-control::placeholder {
    color: #9aa6b2;
    font-style: italic;
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 3rem;
}

/* Checkbox styling */
.form-group label input[type="checkbox"] {
    margin-right: 0.75rem;
    transform: scale(1.2);
    accent-color: var(--primary-color);
}

/* Form Actions */
.form-actions {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid #f1f3f5;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Buttons */
.btn-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn, .btn-admin {
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 140px;
    justify-content: center;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn::before, .btn-admin::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before, .btn-admin:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(5, 175, 147, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(5, 175, 147, 0.35);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.25);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268, #4e555b);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(108, 117, 125, 0.35);
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.25);
}

.btn-success:hover {
    background: linear-gradient(135deg, #34ce57, #28a745);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(40, 167, 69, 0.35);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.25);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #e4606d, #dc3545);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(220, 53, 69, 0.35);
}

.btn-warning {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.25);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #5a6268, #495057);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(108, 117, 125, 0.35);
}

.btn-info {
    background: #ffffff;
    color: #28a745;
    border: 1px solid #28a745;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.15);
}

.btn-info:hover {
    background: #28a745;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(40, 167, 69, 0.35);
}

.btn-small {
    padding: 0.625rem 1.25rem;
    font-size: 0.85rem;
    min-width: 100px;
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    min-width: 180px;
}

/* Tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.admin-table th {
    background: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid #e9ecef;
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.admin-table tr:hover {
    background: #f8f9fa;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

/* Message Items */
.message-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.message-item:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.message-item .message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.message-item h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.125rem;
    font-weight: 600;
}

.message-item .message-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
}

.message-item .message-content {
    color: #495057;
    line-height: 1.6;
}

.message-item .message-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 0.75rem;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

.status-badge.active {
    background: #d1ecf1;
    color: #0c5460;
}

.status-badge.inactive {
    background: #e2e3e5;
    color: #6c757d;
}

/* Alerts */
.admin-alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.admin-alert i {
    font-size: 1.25rem;
}

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

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

.admin-alert.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.admin-alert.info {
    background: #cce7ff;
    color: #004085;
    border: 1px solid #bee5eb;
}

/* Mobile Responsiveness for Admin Panel */
@media (max-width: 1024px) {
    .admin-sidebar {
        width: 200px;
        min-width: 200px;
    }
    
    .admin-main {
        margin-left: 200px;
        width: calc(100% - 200px);
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .admin-container {
        flex-direction: column;
    }
    
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        padding: 1rem 0;
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    
    .admin-sidebar.mobile-nav-open {
        left: 0;
    }
    
    .admin-sidebar .nav-links {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }
    
    .admin-sidebar .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .admin-sidebar .nav-links li:last-child {
        border-bottom: none;
    }
    
    .admin-sidebar .nav-links a {
        padding: 1rem 1.5rem;
        width: 100%;
        text-align: left;
        border-radius: 0;
        border: none;
        transform: none;
        font-size: 1rem;
        touch-action: manipulation;
        color: white;
        background: transparent;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        transition: all 0.3s ease;
    }
    
    .admin-sidebar .nav-links a:hover,
    .admin-sidebar .nav-links a.active {
        background: rgba(255, 255, 255, 0.2);
        transform: none;
        box-shadow: none;
    }
    
    .admin-main {
        order: 1;
        margin-left: 0;
        width: 100%;
        padding: 1rem;
        overflow-x: hidden;
    }
    
    /* Mobile overlay */
    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    .mobile-overlay.show {
        display: block;
    }
    
    /* Mobile admin header */
    .admin-header {
        padding: 1rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        background: white;
        border-bottom: 1px solid #e9ecef;
        position: sticky;
        top: 0;
        z-index: 100;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        height: 70px;
        box-sizing: border-box;
    }
    
    /* Mobile menu toggle button */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: var(--primary-color);
        border: none;
        border-radius: 50%;
        color: white;
        font-size: 1.2rem;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-menu-toggle:hover {
        background: var(--primary-dark);
        transform: scale(1.05);
    }
    
    /* Mobile dashboard title */
    .mobile-dashboard-title {
        flex: 1;
        margin-left: 1rem;
    }
    
    .mobile-dashboard-title h1 {
        font-size: 1.25rem;
        margin: 0 0 0.25rem 0;
        color: #2c3e50;
        font-weight: 600;
    }
    
    .mobile-dashboard-subtitle {
        font-size: 0.85rem;
        color: #6c757d;
        margin: 0;
    }
    
    .header-actions {
        display: none;
    }
    
    .message-stats {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .btn-group {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    /* Mobile table responsiveness */
    .admin-table {
        font-size: 0.875rem;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        width: 100%;
        border-radius: 8px;
        border: 1px solid #e9ecef;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.75rem 0.5rem;
        min-width: 120px;
        white-space: nowrap;
    }
    
    .admin-table th:first-child,
    .admin-table td:first-child {
        min-width: 150px;
        position: sticky;
        left: 0;
        background: white;
        z-index: 10;
        border-right: 1px solid #e9ecef;
    }
    
    .admin-table th:last-child,
    .admin-table td:last-child {
        min-width: 140px;
        position: sticky;
        right: 0;
        background: white;
        z-index: 10;
        border-left: 1px solid #e9ecef;
    }
    
    /* Table responsive container */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 1rem;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        position: relative;
    }
    
    .table-responsive::-webkit-scrollbar {
        height: 12px;
    }
    
    .table-responsive::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 6px;
    }
    
    .table-responsive::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 6px;
        border: 2px solid #f1f1f1;
    }
    
    .table-responsive::-webkit-scrollbar-thumb:hover {
        background: var(--primary-dark);
    }
    
    /* Security logs specific styling */
    .security-logs-table {
        min-width: 700px;
    }
    
    .security-logs-table th:first-child,
    .security-logs-table td:first-child {
        min-width: 160px;
        max-width: 160px;
    }
    
    .security-logs-table th:last-child,
    .security-logs-table td:last-child {
        min-width: 250px;
    }
    
    /* Admin cards mobile optimization */
    .admin-card {
        margin-bottom: 1.5rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        border-radius: 12px;
        overflow: hidden;
        border: 1px solid #e9ecef;
    }
    
    .admin-card .card-header {
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
        color: white;
        padding: 1rem;
        margin: 0;
        position: relative;
    }
    
    .admin-card .card-header::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0.3) 100%);
    }
    
    .admin-card .card-header h3,
    .admin-card .card-header h2 {
        margin: 0;
        font-size: 1.1rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    /* Status badges mobile */
    .status-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
        border-radius: 12px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        white-space: nowrap;
    }
    
    .card-header {
        padding: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Form elements mobile */
    .admin-form .form-group {
        margin-bottom: 1rem;
    }
    
    .admin-form input,
    .admin-form select,
    .admin-form textarea {
        font-size: 16px; /* Prevents iOS zoom */
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Message items mobile */
    .message-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .message-item .message-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .message-item .message-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 1rem;
    }
    
    .message-item .message-actions .btn {
        flex: 1;
        min-width: 120px;
    }
    
    /* Button mobile optimization */
    .btn-admin,
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .btn-sm {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .admin-main {
        padding: 0.75rem;
    }
    
    .admin-header {
        padding: 0.75rem;
    }
    
    .admin-header h1 {
        font-size: 1.25rem;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .admin-form {
        padding: 0.75rem;
    }
    
    .message-item {
        padding: 0.75rem;
    }
    
    .btn-admin {
        padding: 0.6rem 1rem;
    }
    
    /* Very small screen table optimization */
    .admin-table {
        font-size: 0.8rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.5rem 0.25rem;
        min-width: 80px;
    }
    
    /* Stack admin sidebar links */
    .admin-sidebar .nav-links {
        flex-direction: column;
        align-items: center;
    }
    
    .admin-sidebar .nav-links a {
        width: 90%;
        max-width: 200px;
        margin-bottom: 0.25rem;
    }
    
    /* Compact stats grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1rem;
        text-align: center;
    }
    
    /* Mobile form improvements */
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        padding: 0.75rem;
    }
    
    /* Message actions mobile */
    .message-item .message-actions {
        flex-direction: column;
    }
    
    .message-item .message-actions .btn {
        width: 100%;
        margin-bottom: 0.5rem;
        font-size: 0.85rem;
        min-width: 100px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-card .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .stat-card .stat-number {
        font-size: 1.5rem;
    }
    
    /* Additional mobile optimizations for admin modals */
    .modal {
        padding: 0.5rem;
    }
    
    .modal-content {
        max-height: 90vh;
        overflow-y: auto;
        margin: 1rem 0;
    }
    
    .modal-header {
        padding: 1rem;
        flex-shrink: 0;
    }
    
    .modal-body {
        padding: 1rem;
        flex: 1;
        overflow-y: auto;
    }
    
    /* Dropdown menus mobile optimization */
    .user-dropdown .dropdown-menu {
        position: fixed;
        left: 0.5rem;
        right: 0.5rem;
        top: auto;
        width: auto;
        min-width: auto;
        max-width: calc(100vw - 1rem);
        margin-top: 0.5rem;
    }
    
    /* Admin header user info mobile */
    .admin-header .user-info span {
        display: none;
    }
    
    .admin-header .user-info::after {
        content: "Menu";
        font-size: 0.9rem;
        margin-left: 0.5rem;
    }
    
    /* Form row mobile stacking */
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-group {
        width: 100%;
    }
    
    /* Better table actions on mobile */
    .btn-group {
        display: flex;
        flex-wrap: wrap;
        gap: 0.25rem;
        justify-content: flex-start;
    }
    
    .btn-group .btn {
        flex: 0 0 auto;
        min-width: 44px;
        white-space: nowrap;
        text-align: center;
    }
    
    /* Security page specific buttons */
    .security-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .security-actions .btn {
        flex: 1;
        min-width: 120px;
    }
    

