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

:root {
    --color-navy-dark: #0d1b2a;
    --color-navy-medium: #1b263b;
    --color-navy-light: #415a77;
    --color-navy-bg: #e0e6ed;
    --color-beige-bg: #faf7f0;
    --color-beige-card: #ffffff;
    --color-beige-dark: #f0ece1;
    --color-coral: #ff6f61;
    --color-coral-hover: #e05c4f;
    --color-coral-light: rgba(255, 111, 97, 0.1);
    --color-text-dark: #1d2d44;
    --color-text-muted: #627284;
    --color-success: #2ec4b6;
    --color-danger: #e63946;
    --color-warning: #ffb703;
    --color-table-hover: #faf9f6;
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 4px rgba(29, 45, 68, 0.05);
    --shadow-md: 0 10px 20px rgba(29, 45, 68, 0.08);
    --shadow-lg: 0 20px 40px rgba(29, 45, 68, 0.12);
}

[data-theme="dark"] {
    --color-navy-dark: #09111e;
    --color-navy-medium: #0d1b2a;
    --color-navy-light: #94a3b8;
    --color-navy-bg: #1e293b;
    --color-beige-bg: #0f172a;
    --color-beige-card: #1e293b;
    --color-beige-dark: #334155;
    --color-text-dark: #f8fafc;
    --color-text-muted: #94a3b8;
    --color-coral-light: rgba(255, 111, 97, 0.15);
    --color-table-hover: rgba(255, 255, 255, 0.03);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.5);
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-beige-bg);
    color: var(--color-text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--color-text-dark);
}

a {
    color: var(--color-navy-light);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-coral);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--color-navy-dark);
    color: #ffffff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.theme-toggle-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}
.theme-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-coral);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-container img {
    height: 40px;
    object-fit: contain;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
}

.logo-text span {
    color: var(--color-coral);
}

nav {
    margin-left: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

nav a {
    color: #e0e6ed;
    font-weight: 500;
    font-size: 15px;
    padding: 6px 12px;
    border-radius: 6px;
}

nav a:hover, nav li.active a {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);
}

.nav-btn {
    background-color: var(--color-coral);
    color: #ffffff !important;
    padding: 8px 16px !important;
    border-radius: var(--border-radius);
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(255, 111, 97, 0.2);
}

.nav-btn:hover {
    background-color: var(--color-coral-hover);
    transform: translateY(-2px);
}

.nav-btn-secondary {
    border: 1px solid var(--color-navy-light);
    color: #ffffff !important;
    padding: 8px 16px !important;
    border-radius: var(--border-radius);
    font-weight: 600;
}

.nav-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Footer */
footer {
    background-color: var(--color-navy-dark);
    color: #e0e6ed;
    padding: 40px 0 20px 0;
    margin-top: auto;
    border-top: 5px solid var(--color-coral);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-brand p {
    margin-top: 15px;
    color: var(--color-navy-light);
    font-size: 14px;
}

.footer-links h4 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 18px;
    position: relative;
    padding-bottom: 8px;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-coral);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #b0c0d0;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--color-coral);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #90a0b0;
}

/* Main Layout */
main {
    padding: 50px 0;
    flex: 1;
}

/* Banner / Hero Section */
.hero-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.hero-section h1 {
    font-size: 42px;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.hero-section p {
    font-size: 18px;
    color: var(--color-text-muted);
}

/* Card Styles */
.card {
    background-color: var(--color-beige-card);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-beige-dark);
}

/* Upload Interface */
.upload-container {
    max-width: 700px;
    margin: 0 auto;
}

.upload-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.upload-tab {
    background: none;
    border: 1px solid var(--color-beige-dark);
    padding: 10px 20px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 14px;
    border-radius: 30px;
    cursor: pointer;
    color: var(--color-text-muted);
    transition: var(--transition);
}

.upload-tab:hover, .upload-tab.active {
    background-color: var(--color-navy-dark);
    color: #ffffff;
    border-color: var(--color-navy-dark);
}

.upload-pane {
    display: none;
}

.upload-pane.active {
    display: block;
}

.dropzone {
    border: 3px dashed var(--color-navy-light);
    background-color: var(--color-beige-bg);
    border-radius: var(--border-radius);
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.dropzone:hover, .dropzone.dragover {
    border-color: var(--color-coral);
    background-color: var(--color-coral-light);
}

.dropzone-icon {
    font-size: 50px;
    color: var(--color-navy-light);
    margin-bottom: 15px;
    display: block;
}

.dropzone:hover .dropzone-icon {
    color: var(--color-coral);
    transform: scale(1.1);
}

.dropzone-text {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--color-text-dark);
}

.dropzone-subtext {
    font-size: 13px;
    color: var(--color-text-muted);
}

.file-input {
    display: none;
}

/* Settings Box */
.upload-options {
    margin-top: 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text-dark);
}

.form-control {
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--color-beige-dark);
    background-color: var(--color-beige-card);
    color: var(--color-text-dark);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--color-coral);
    box-shadow: 0 0 0 3px var(--color-coral-light);
}

.btn {
    background-color: var(--color-coral);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 6px rgba(255, 111, 97, 0.15);
}

.btn:hover {
    background-color: var(--color-coral-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(255, 111, 97, 0.25);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-secondary {
    background-color: var(--color-navy-dark);
}

.btn-secondary:hover {
    background-color: var(--color-navy-medium);
}

.btn-danger {
    background-color: var(--color-danger);
}

.btn-danger:hover {
    background-color: #d62828;
}

/* Uploading Progress */
.progress-container {
    display: none;
    margin-top: 25px;
}

.progress-bar-wrapper {
    background-color: var(--color-beige-dark);
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    background-color: var(--color-coral);
    width: 0%;
    height: 100%;
    transition: width 0.1s ease;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 500;
}

/* Upload Results */
.result-container {
    display: none;
    margin-top: 25px;
}

.result-preview {
    max-width: 100%;
    max-height: 250px;
    border-radius: var(--border-radius);
    display: block;
    margin: 0 auto 20px auto;
    object-fit: contain;
    border: 1px solid var(--color-beige-dark);
    padding: 5px;
    background: var(--color-beige-card);
}

.link-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.link-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.link-item label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-navy-light);
}

.link-input-group {
    display: flex;
}

.link-input-group input {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.link-input-group button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    padding: 0 15px;
    background-color: var(--color-navy-dark);
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.link-input-group button:hover {
    background-color: var(--color-coral);
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background-color: #e8f7f5;
    color: #1a6d63;
    border: 1px solid #c7ece6;
}

[data-theme="dark"] .alert-success {
    background-color: rgba(46, 196, 182, 0.15);
    color: #2ec4b6;
    border: 1px solid rgba(46, 196, 182, 0.3);
}

.alert-danger {
    background-color: #ffebee;
    color: #b71c1c;
    border: 1px solid #ffcdd2;
}

[data-theme="dark"] .alert-danger {
    background-color: rgba(230, 57, 70, 0.15);
    color: #e63946;
    border: 1px solid rgba(230, 57, 70, 0.3);
}

.alert-info {
    background-color: #e3f2fd;
    color: #0d47a1;
    border: 1px solid #bbdefb;
}

[data-theme="dark"] .alert-info {
    background-color: rgba(65, 90, 119, 0.15);
    color: #cbd5e1;
    border: 1px solid rgba(65, 90, 119, 0.3);
}

.alert-warning {
    background-color: #fff9db;
    color: #f59f00;
    border: 1px solid #ffe066;
}

[data-theme="dark"] .alert-warning {
    background-color: rgba(255, 183, 3, 0.15);
    color: #ffb703;
    border: 1px solid rgba(255, 183, 3, 0.3);
}

/* Image Gateway Page (i.php) */
.image-viewer-container {
    max-width: 900px;
    margin: 0 auto;
}

.image-viewer-card {
    text-align: center;
}

.image-viewer-frame {
    background: #000;
    border-radius: var(--border-radius);
    padding: 10px;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 600px;
    overflow: hidden;
}

.image-viewer-frame img {
    max-width: 100%;
    max-height: 580px;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.image-viewer-frame img:hover {
    transform: scale(1.01);
}

.image-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 14px;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-beige-dark);
    padding-top: 15px;
    margin-top: 15px;
}

.image-meta span strong {
    color: var(--color-text-dark);
}

/* Password Form for Locked Images */
.password-box {
    max-width: 400px;
    margin: 40px auto;
}

.password-box-icon {
    font-size: 48px;
    color: var(--color-coral);
    margin-bottom: 20px;
}

/* Auth Cards */
.auth-container {
    max-width: 450px;
    margin: 0 auto;
}

.auth-header {
    text-align: center;
    margin-bottom: 25px;
}

.auth-header h2 {
    font-size: 28px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--color-text-muted);
}

/* Blog Layout */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card-img-wrapper {
    margin: -30px -30px 20px -30px;
    overflow: hidden;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    height: 200px;
    border-bottom: 1px solid var(--color-beige-dark);
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.blog-card:hover .blog-card-img {
    transform: scale(1.04);
}

.blog-card-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.blog-card-excerpt {
    color: var(--color-text-muted);
    font-size: 14px;
    flex-grow: 1;
    margin-bottom: 20px;
}

.blog-card-meta {
    font-size: 12px;
    color: var(--color-navy-light);
    margin-bottom: 10px;
}

.blog-post-content {
    background-color: var(--color-beige-card);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-beige-dark);
    margin-top: 30px;
}

.blog-post-header {
    border-bottom: 1px solid var(--color-beige-dark);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.blog-post-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.blog-post-banner {
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--color-beige-dark);
    max-height: 400px;
}

.blog-post-banner img {
    width: 100%;
    height: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.blog-post-body {
    font-size: 16px;
    line-height: 1.8;
}

.blog-post-body p {
    margin-bottom: 20px;
}

.blog-post-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 25px auto;
    display: block;
    border: 1px solid var(--color-beige-dark);
}

/* Blog Single View Layout Wrapper with Sidebar */
.blog-layout-wrapper {
    display: grid;
    grid-template-columns: 2.7fr 1fr;
    gap: 30px;
    align-items: start;
}

.blog-sidebar {
    position: sticky;
    top: 90px;
}

.sidebar-widget {
    padding: 25px;
}

.sidebar-widget h3 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-coral);
    display: inline-block;
}

.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recent-post-item {
    display: flex;
    gap: 15px;
    align-items: center;
}

.recent-post-thumb {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--color-beige-dark);
}

.recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.recent-post-item:hover .recent-post-thumb img {
    transform: scale(1.06);
}

.recent-post-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow: hidden;
}

.recent-post-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-dark);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.recent-post-title:hover {
    color: var(--color-coral);
}

.recent-post-date {
    font-size: 12px;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Pagination Styling */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    background-color: var(--color-beige-card);
    border: 1px solid var(--color-beige-dark);
    border-radius: 8px;
    color: var(--color-text-dark);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.page-link:hover {
    background-color: var(--color-coral);
    border-color: var(--color-coral);
    color: #ffffff;
    transform: translateY(-1px);
}

.page-link.active {
    background-color: var(--color-navy-dark);
    border-color: var(--color-navy-dark);
    color: #ffffff;
    font-weight: 600;
    cursor: default;
    pointer-events: none;
}

@media (max-width: 992px) {
    .blog-layout-wrapper {
        grid-template-columns: 1fr;
    }
    .blog-sidebar {
        position: static;
    }
}

/* Dashboard / Sidebar Layout */
.dashboard-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    margin-top: 30px;
}

.sidebar {
    background-color: var(--color-navy-dark);
    border-radius: var(--border-radius);
    padding: 20px;
    color: #ffffff;
    height: fit-content;
}

.sidebar-user {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.sidebar-user-avatar {
    width: 60px;
    height: 60px;
    background-color: var(--color-coral);
    border-radius: 50%;
    margin: 0 auto 10px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 24px;
    color: #ffffff;
}

.sidebar-user-name {
    font-weight: 600;
    font-size: 16px;
}

.sidebar-user-role {
    font-size: 12px;
    color: var(--color-navy-light);
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-menu a {
    color: #b0c0d0;
    display: block;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
}

.sidebar-menu a:hover, .sidebar-menu li.active a {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
}

.sidebar-menu li.active a {
    border-left: 3px solid var(--color-coral);
    background-color: rgba(255, 255, 255, 0.08);
}

.dashboard-content {
    background-color: var(--color-beige-card);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-beige-dark);
}

.dashboard-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--color-beige-dark);
    padding-bottom: 15px;
}

.dashboard-title-bar h2 {
    font-size: 24px;
}

/* User Images Grid */
.user-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.image-card {
    border: 1px solid var(--color-beige-dark);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    background-color: var(--color-beige-bg);
}

.image-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.image-card-thumb {
    height: 150px;
    overflow: hidden;
    position: relative;
}

.image-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-card-overlay {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    gap: 5px;
}

.badge {
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    color: #ffffff;
}

.badge-info { background-color: var(--color-navy-light); }
.badge-danger { background-color: var(--color-danger); }
.badge-success { background-color: var(--color-success); }
.badge-warning { background-color: var(--color-warning); }

.image-card-details {
    padding: 12px;
    background-color: var(--color-beige-card);
}

.image-card-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.image-card-stats {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--color-text-muted);
}

.image-card-actions {
    display: flex;
    border-top: 1px solid var(--color-beige-dark);
}

.image-card-actions a, .image-card-actions button {
    flex: 1;
    padding: 8px;
    font-size: 12px;
    text-align: center;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 500;
}

.image-card-actions a {
    color: var(--color-navy-light);
}

.image-card-actions button {
    color: var(--color-danger);
    border-left: 1px solid var(--color-beige-dark);
}

.image-card-actions button:hover {
    background-color: #ffebee;
}

.image-card-actions a:hover {
    background-color: var(--color-beige-bg);
}

/* Support Ticket Lists */
.ticket-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ticket-item {
    border: 1px solid var(--color-beige-dark);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticket-item-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.ticket-item-info p {
    font-size: 13px;
    color: var(--color-text-muted);
}

/* Chat/Message Box for Support */
.chat-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 25px 0;
}

.message-bubble {
    max-width: 75%;
    padding: 16px 20px;
    border-radius: 16px;
    font-size: 14px;
    box-shadow: var(--shadow-sm);
    line-height: 1.5;
    position: relative;
    transition: var(--transition);
}

.message-user {
    align-self: flex-end;
    background-color: var(--color-coral-light);
    border-bottom-right-radius: 4px;
    border: 1px solid rgba(255, 111, 97, 0.25);
    color: var(--color-text-dark);
}

.message-admin {
    align-self: flex-start;
    background-color: var(--color-beige-bg);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--color-beige-dark);
    color: var(--color-text-dark);
}

.is-staff-message {
    border-left: 4px solid var(--color-coral) !important;
    background-image: linear-gradient(135deg, rgba(255, 111, 97, 0.04) 0%, rgba(255, 255, 255, 0) 100%);
    box-shadow: 0 4px 15px rgba(255, 111, 97, 0.05);
}

[data-theme="dark"] .is-staff-message {
    border-left: 4px solid var(--color-coral) !important;
    background-image: linear-gradient(135deg, rgba(255, 111, 97, 0.06) 0%, rgba(30, 41, 59, 0) 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.staff-badge {
    background: var(--color-coral);
    color: #ffffff !important;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 6px rgba(255, 111, 97, 0.3);
    margin-left: 8px;
    vertical-align: middle;
}

.message-meta {
    font-size: 11px;
    color: var(--color-text-muted);
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
}

.ticket-reply-form {
    border-top: 1px solid var(--color-beige-dark);
    padding-top: 20px;
}

/* Admin Dashboard Elements */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: var(--color-beige-bg);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid var(--color-beige-dark);
    display: flex;
    flex-direction: column;
}

.stat-card-label {
    font-size: 13px;
    color: var(--color-text-muted);
    font-weight: 500;
}

.stat-card-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-text-dark);
    margin-top: 5px;
}

/* Tables styling */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 14px;
}

.table th, .table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--color-beige-dark);
}

.table th {
    background-color: var(--color-navy-dark);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

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

/* Responsive Styles */
@media (max-width: 992px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        position: relative;
    }
    
    .menu-toggle {
        display: block;
    }
    
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-navy-dark);
        border-bottom: 2px solid var(--color-coral);
        box-shadow: var(--shadow-md);
        padding: 15px 20px;
        z-index: 1000;
        margin-left: 0;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        width: 100%;
    }
    
    nav a {
        display: block;
        text-align: center;
        padding: 8px;
        background-color: rgba(255, 255, 255, 0.03);
    }
    
    .upload-options {
        grid-template-columns: 1fr;
    }
    
    .hero-section h1 {
        font-size: 32px;
    }
}

/* Modal Overlay & Cropper Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}
.modal-card {
    background-color: var(--color-beige-card);
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 700px;
    box-shadow: var(--shadow-lg);
    padding: 25px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-beige-dark);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--color-beige-dark);
    padding-bottom: 10px;
}
.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--color-text-muted);
    transition: var(--transition);
}
.modal-close:hover {
    color: var(--color-coral);
}

/* Announcement Bar Styles */
.announcement-bar {
    background: linear-gradient(135deg, var(--color-coral) 0%, var(--color-coral-hover) 100%);
    color: #ffffff;
    padding: 8px 0;
    max-height: 50px;
    opacity: 1;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 99;
}

.announcement-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.announcement-slider {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 24px;
}

.announcement-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.announcement-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
    font-size: 14px;
    font-weight: 500;
}

.announcement-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.announcement-slide a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.announcement-slide a:hover {
    color: var(--color-navy-dark);
}

.announcement-arrow, .announcement-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    font-size: 13px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
}

.announcement-arrow:hover, .announcement-close:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.15);
}

/* Adjustments for Dark Mode theme integration */
[data-theme="dark"] .announcement-bar {
    background: linear-gradient(135deg, #1e1b4b 0%, var(--color-navy-dark) 100%);
    border-bottom: 1px solid var(--color-beige-dark);
}

[data-theme="dark"] .announcement-slide a:hover {
    color: var(--color-coral);
}

/* Responsive adjustment for Mobile */
@media (max-width: 768px) {
    .announcement-bar {
        padding: 6px 0;
        max-height: 60px;
    }
    .announcement-slide {
        font-size: 13px;
        line-height: 1.3;
    }
    .announcement-arrow {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }
    .announcement-close {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }
}

/* SEO Features Section on Homepage */
.seo-features-section {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    padding: 50px 30px;
}

@media (max-width: 768px) {
    .seo-features-section {
        grid-template-columns: 1fr !important;
        gap: 30px;
        padding: 30px 15px !important;
    }
    
    .dropzone {
        padding: 40px 20px !important;
    }
}

/* Lightbox styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(10, 15, 30, 0.85); /* Premium dark navy shade */
    backdrop-filter: blur(8px);
    z-index: 20000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lightbox-container {
    width: 100%;
    height: calc(100% - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.lightbox-container img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    transform-origin: center center;
    transition: transform 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 20100;
}

.lightbox-close:hover {
    background: var(--color-coral);
    border-color: var(--color-coral);
    transform: scale(1.1);
}

.lightbox-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 30px;
    margin-top: 20px;
    z-index: 20100;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.lightbox-toolbar button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    padding: 6px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.lightbox-toolbar button:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateY(-1px);
}

.lightbox-toolbar span {
    color: #fff;
    font-size: 13px;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    min-width: 45px;
    text-align: center;
    user-select: none;
}

/* Social Share Buttons */
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff !important;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none !important;
}

.share-btn i {
    font-size: 15px;
}

.share-facebook {
    background-color: #1877f2;
}
.share-facebook:hover {
    background-color: #1565c0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.share-x {
    background-color: #0f1419;
}
.share-x:hover {
    background-color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 20, 25, 0.3);
}

.share-pinterest {
    background-color: #e60023;
}
.share-pinterest:hover {
    background-color: #ad0018;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 0, 35, 0.3);
}

.share-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.share-instagram:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 39, 67, 0.3);
}

