/* Imports and Reset */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

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

:root {
    --primary-color: #e63946;
    --secondary-color: #1d3557;
    --accent-color: #f77f00;
    --dark-bg: #0d1b2a;
    --light-bg: #f1faee;
    --text-dark: #1b263b;
    --text-light: #e0e1dd;
    --border-color: #415a77;
    --success-color: #06d6a0;
    --warning-color: #ffd166;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    width: 100%;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-bg) 100%);
    color: var(--text-light);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}

.logo:visited,
.logo:link {
    color: inherit;
    text-decoration: none;
}

.logo:hover {
    transform: scale(1.05);
    opacity: 0.9;
    text-decoration: none;
}

.logo:active {
    transform: scale(0.98);
    text-decoration: none;
}

.logo:focus {
    outline: none;
    text-decoration: none;
}

.logo h1 {
    font-size: 2rem;
    letter-spacing: 2px;
    margin-bottom: 0;
    transition: letter-spacing 0.3s ease;
    color: var(--text-light);
}

.logo:visited h1,
.logo:link h1 {
    color: var(--text-light);
}

.logo:hover h1 {
    letter-spacing: 3px;
}

.logo h1 span {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.logo:visited h1 span,
.logo:link h1 span {
    color: var(--primary-color);
}

.logo:hover h1 span {
    color: var(--accent-color);
}

.tagline {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 0.2rem;
    transition: opacity 0.3s ease;
    color: var(--text-light);
}

.logo:visited .tagline,
.logo:link .tagline {
    color: var(--text-light);
    opacity: 0.8;
}

.logo:hover .tagline {
    opacity: 1;
}

.nav {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.admin-link {
    background-color: rgba(230, 57, 70, 0.2);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(13, 27, 42, 0.8), rgba(29, 53, 87, 0.8)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><rect fill="%231d3557" width="1200" height="400"/><path fill="%230d1b2a" opacity="0.3" d="M0,200 Q300,100 600,200 T1200,200 L1200,400 L0,400 Z"/></svg>');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    padding: 4rem 0;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Buttons */
.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.4);
}

.btn:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

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

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

.btn-reset {
    padding: 0.6rem 1.2rem;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

/* Button color variants for table actions */
.btn-secondary {
    background-color: rgba(65, 90, 119, 0.3);
    color: #1d3557;
    border: 1px solid rgba(65, 90, 119, 0.5);
}

.btn-secondary:hover {
    background-color: rgba(65, 90, 119, 0.5);
    border: 1px solid rgba(65, 90, 119, 0.7);
}

.btn-info {
    background-color: rgba(33, 150, 243, 0.25);
    color: #1565c0;
    border: 1px solid rgba(33, 150, 243, 0.5);
}

.btn-info:hover {
    background-color: rgba(33, 150, 243, 0.4);
    border: 1px solid rgba(33, 150, 243, 0.7);
}

.btn-warning {
    background-color: rgba(255, 152, 0, 0.25);
    color: #e65100;
    border: 1px solid rgba(255, 152, 0, 0.5);
}

.btn-warning:hover {
    background-color: rgba(255, 152, 0, 0.4);
    border: 1px solid rgba(255, 152, 0, 0.7);
}

.btn-danger {
    background-color: rgba(244, 67, 54, 0.25);
    color: #c62828;
    border: 1px solid rgba(244, 67, 54, 0.5);
}

.btn-danger:hover {
    background-color: rgba(244, 67, 54, 0.4);
    border: 1px solid rgba(244, 67, 54, 0.7);
}

.btn-success {
    background-color: rgba(76, 175, 80, 0.25);
    color: #2e7d32;
    border: 1px solid rgba(76, 175, 80, 0.5);
}

.btn-success:hover {
    background-color: rgba(76, 175, 80, 0.4);
    border: 1px solid rgba(76, 175, 80, 0.7);
}

/* Filters Section */
.filters-section {
    background-color: white;
    padding: 2rem 0;
    box-shadow: var(--card-shadow);
    margin-top: 2rem;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    text-align: center;
}

.filters {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-box {
    display: flex;
    gap: 0.5rem;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.search-input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-btn {
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
}

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

.filter-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.filter-select {
    padding: 0.6rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.95rem;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Products Grid */
.products-section {
    padding: 3rem 0;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

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

.product-card {
    background: white;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.product-card:hover,
.product-card:focus {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.product-card:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--border-color), var(--secondary-color));
    border-radius: 8px 8px 0 0;
    display: block;
    overflow: hidden;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 10;
}

.badge-new {
    background-color: var(--success-color);
    color: white;
}

.badge-contract {
    background-color: var(--warning-color);
    color: var(--text-dark);
}

.badge-repaired {
    background-color: #2196F3;
    color: white;
}

.badge-unavailable {
    background-color: #777;
    color: white;
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.product-brand {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.product-specs {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #666;
}

.product-price {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-top: 1rem;
}

.product-price-label {
    font-size: 0.9rem;
    color: #666;
}

/* Product Detail Page */
.product-detail {
    padding: 2rem 0;
    min-height: 70vh;
}

.back-link {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--primary-color);
}

.product-detail-content {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.thumbnail-gallery {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
}

.product-detail-info h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.product-detail-brand {
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-detail-price {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 1.5rem 0;
}

.specs-table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid #eee;
}

.specs-table td {
    padding: 0.8rem;
}

.specs-table td:first-child {
    font-weight: 600;
    color: var(--secondary-color);
    width: 40%;
}

.product-description {
    margin-top: 2rem;
    line-height: 1.8;
    color: #444;
}

.product-description h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 2001;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.modal-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}

.modal-nav-btn {
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

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

.modal-dialog {
    background-color: transparent;
    max-width: 600px;
    width: 90%;
}

.modal-large {
    max-width: 800px;
    max-height: 95vh;
}

.modal-content-box {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    background-color: var(--secondary-color);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
}

.modal-header .modal-close {
    position: static;
    font-size: 30px;
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

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

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

.form-input,
.form-select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

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

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Admin Panel */
.admin-panel {
    padding: 2rem 0;
    min-height: 80vh;
}

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

.admin-tab {
    padding: 1rem 2rem;
    background-color: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.admin-tab.active {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
}

.admin-tab:hover {
    background-color: rgba(230, 57, 70, 0.1);
}

.admin-content {
    display: none;
}

.admin-content.active {
    display: block;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-header h2 {
    color: var(--secondary-color);
}

.admin-table-container {
    background: white;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background-color: var(--secondary-color);
    color: white;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table tbody tr:hover {
    background-color: rgba(230, 57, 70, 0.05);
}

/* Product checkbox styles */
input[type="checkbox"] {
    cursor: pointer;
    accent-color: var(--primary-color);
}

input[type="checkbox"]:hover {
    transform: scale(1.1);
}

/* Selected row highlighting */
.product-row {
    transition: background-color 0.2s ease;
}

.action-btn {
    padding: 0.4rem 0.8rem;
    margin-right: 0.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-edit {
    background-color: var(--accent-color);
    color: white;
}

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

.btn-view {
    background-color: var(--secondary-color);
    color: white;
}

.action-btn:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-pending {
    background-color: var(--warning-color);
    color: var(--text-dark);
}

.status-confirmed {
    background-color: var(--success-color);
    color: white;
}

.status-completed {
    background-color: var(--secondary-color);
    color: white;
}

.status-cancelled {
    background-color: #999;
    color: white;
}

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

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s ease;
}

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

.stat-icon {
    font-size: 3rem;
}

.stat-info h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-info p {
    color: #666;
    font-size: 0.95rem;
}

.stats-chart {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
}

.chart-container {
    margin-top: 1.5rem;
}

.chart-bar {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.chart-label {
    width: 120px;
    min-width: 80px;
    font-weight: 600;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.chart-bar-bg {
    flex: 1;
    height: 30px;
    background-color: #eee;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.chart-bar-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: white;
    font-weight: 600;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-bg) 100%);
    color: var(--text-light);
    padding: 2rem 0 1rem;
    margin-top: 2rem;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-link {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 0.7;
}

.footer-link:visited {
    color: inherit;
}

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

/* Light CTA Section */
.light-cta-section {
    background-color: var(--light-bg);
    padding: 4rem 0;
    margin-bottom: 2rem;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.light-cta-content {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.light-cta-title {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 3rem;
    font-weight: 700;
}

.light-cta-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .logo {
        transition: none;
    }

    .logo:hover {
        transform: none;
        opacity: 1;
    }

    .logo:active {
        transform: none;
    }

    .logo h1 {
        transition: none;
    }

    .logo:hover h1 {
        letter-spacing: 2px;
    }

    .logo h1 span {
        transition: none;
    }

    .logo:hover h1 span {
        color: var(--primary-color);
    }

    .tagline {
        transition: none;
    }

    .logo:hover .tagline {
        opacity: 0.8;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2rem;
    }

    .filter-controls {
        flex-direction: column;
        width: 100%;
    }

    .filter-select {
        width: 100%;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .admin-table {
        font-size: 0.85rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.5rem;
    }

    .light-cta-title {
        font-size: 1.8rem;
    }

    .light-cta-features {
        grid-template-columns: 1fr;
    }

    .light-cta-section {
        padding: 2rem 0;
    }
}

/* Extra small screens */
@media (max-width: 600px) {
    .container {
        padding: 0 12px;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .logo {
        transition: none;
    }

    .logo:hover {
        transform: none;
        opacity: 1;
    }

    .logo:active {
        transform: none;
    }

    .logo h1 {
        font-size: 1.6rem;
        transition: none;
    }

    .logo:hover h1 {
        letter-spacing: 2px;
    }

    .logo h1 span {
        transition: none;
    }

    .logo:hover h1 span {
        color: var(--primary-color);
    }

    .tagline {
        font-size: 0.8rem;
        transition: none;
    }

    .logo:hover .tagline {
        opacity: 0.8;
    }

    .nav {
        width: 100%;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .nav-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.95rem;
    }

    .hero {
        padding: 2.2rem 0;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .search-box {
        flex-direction: column;
        max-width: 100%;
    }

    .search-btn {
        width: 100%;
        font-size: 1rem;
        padding: 0.8rem;
    }

    .filter-controls {
        align-items: stretch;
        gap: 0.6rem;
    }

    .products-section {
        padding: 2rem 0;
    }

    .products-grid {
        gap: 1rem;
    }

    .product-image {
        height: 160px;
    }

    .product-specs {
        flex-direction: column;
        gap: 0.5rem;
    }

    .product-detail-content {
        padding: 1.2rem;
    }

    .main-image {
        height: 260px;
    }

    .thumbnail {
        width: 60px;
        height: 60px;
    }

    .product-detail-price {
        font-size: 2rem;
    }

    .specs-table td {
        padding: 0.6rem;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .admin-header {
        flex-direction: column;
        gap: 0.8rem;
        align-items: stretch;
    }
}

/* About and Contact Pages */
.page-hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-bg) 100%);
    color: var(--text-light);
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 3rem;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.content-section {
    padding-top: 2rem;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* About Page */
.about-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.about-block {
    background: white;
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
}

.about-block h2 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-block p {
    line-height: 1.8;
    color: #444;
    margin-bottom: 1rem;
}

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

.advantage-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

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

.advantage-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.advantage-card h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.advantage-card p {
    font-size: 0.95rem;
    color: #666;
}

.offer-list {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.offer-item {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
}

.offer-item h3 {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.offer-item p {
    color: #555;
}

.stats-grid .stat-card {
    flex-direction: column;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 1rem;
    color: #666;
}

.cta-block {
    text-align: center;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-bg) 100%);
    color: white;
}

.cta-block h2 {
    color: white;
}

.cta-block p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.cta-block .btn {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    border: none;
}

.cta-block .btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.cta-block .btn-primary:hover {
    background-color: #d62828;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.4);
}

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

.cta-block .btn-secondary:hover {
    background-color: #d62828;
    color: white;
    border-color: #d62828;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.4);
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto 3rem;
    padding: 0 20px;
    box-sizing: border-box;
}

.contact-info {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    box-sizing: border-box;
    width: 100%;
    overflow-x: hidden;
}

.contact-info h2 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.contact-block {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.contact-block:last-child {
    border-bottom: none;
}

.contact-block {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 2rem;
    min-width: 50px;
}

.contact-details h3 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: #555;
    margin-bottom: 0.3rem;
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--accent-color);
}

.contact-note {
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.contact-form-wrapper {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    box-sizing: border-box;
    width: 100%;
    overflow-x: hidden;
}

.contact-form-wrapper h2 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.form-input,
.form-select,
textarea.form-input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.3s ease;
}

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

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

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

.checkbox-label span {
    font-size: 0.95rem;
    color: #555;
}

.form-message {
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    text-align: center;
}

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

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

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto 3rem;
    padding: 0 20px;
    box-sizing: border-box;
}

.info-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}

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

.info-card h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.info-card p {
    color: #555;
    line-height: 1.7;
}

.faq-section {
    max-width: 1100px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    padding: 2.5rem 20px;
    box-shadow: var(--card-shadow);
    box-sizing: border-box;
}

.faq-section h2 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

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

.faq-item h3 {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.faq-item p {
    color: #555;
    line-height: 1.7;
}

/* Very small screens */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 16px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .info-cards {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .faq-section {
        padding: 2.5rem 16px;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
        box-sizing: border-box;
    }

    .contact-form-wrapper h2 {
        font-size: 1.5rem;
    }

    .form-input,
    .form-select,
    textarea.form-input {
        font-size: 16px;
        padding: 0.75rem;
    }

    textarea.form-input {
        min-height: 100px;
    }

    .checkbox-label {
        font-size: 0.9rem;
    }

    .checkbox-label span {
        font-size: 0.9rem;
    }

    .social-links {
        gap: 0.8rem;
    }

    .social-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        flex: 1;
        min-width: 100px;
        text-align: center;
    }

    .contact-info h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 380px) {
    .logo h1 {
        font-size: 1.4rem;
    }

    .hero-title {
        font-size: 1.4rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .product-image {
        height: 140px;
    }

    .main-image {
        height: 220px;
    }

    .modal-nav-btn {
        padding: 0.6rem 1rem;
        font-size: 1.2rem;
    }

    .modal-large {
        max-height: 95vh;
        width: 95%;
    }

    .modal-content-box {
        max-height: 95vh;
    }

    .modal-body {
        padding: 1rem;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .about-block,
    .contact-info,
    .contact-form-wrapper,
    .faq-section {
        padding: 1.5rem;
    }

    .form-input,
    .form-select,
    textarea.form-input {
        font-size: 16px;
        padding: 0.7rem;
    }

    .contact-form-wrapper h2 {
        font-size: 1.3rem;
    }

    .social-link {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 80px;
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-bg) 100%);
    padding: 2rem;
}

.login-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 3rem;
    width: 100%;
    max-width: 450px;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.login-header h1 span {
    color: var(--primary-color);
}

.login-header p {
    color: #666;
    font-size: 0.95rem;
}

.login-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.login-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.login-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.login-info li {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.3rem;
    padding: 0.3rem 0;
    font-family: 'Courier New', monospace;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .login-container {
        padding: 1rem;
    }

    .login-box {
        padding: 2rem 1.5rem;
    }

    .login-header h1 {
        font-size: 2rem;
    }
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-bg) 100%);
    color: var(--text-light);
    padding: 60px 0;
    margin: 60px 0 0 0;
    border-top: 2px solid #e6712c;
    border-bottom: 2px solid #e6712c;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.cta-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent-color);
    font-weight: 700;
}

.cta-subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
    color: var(--text-light);
    opacity: 0.95;
}

.cta-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cta-benefits li {
    font-size: 1rem;
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-light);
}

.cta-benefits li:before {
    content: '✓';
    font-weight: bold;
    font-size: 1.3rem;
    color: var(--success-color);
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    width: 100%;
}

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

.btn-primary.btn-large:hover {
    background-color: #d62828;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.4);
}

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

.btn-secondary.btn-large:hover {
    background-color: #f16d00;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(247, 127, 0, 0.4);
}

.cta-guarantee {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.85;
    margin: 0;
}

@media (max-width: 768px) {
    .cta-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 16px;
    }

    .cta-text h2 {
        font-size: 1.8rem;
    }

    .cta-section {
        padding: 40px 0;
        width: 100%;
        overflow-x: hidden;
    }
}

/* Accordion Styles */
.accordion {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    background-color: white;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: #1d3557;
    box-shadow: var(--card-shadow);
}

.accordion-item.active {
    background-color: #f8f9fa;
}

.accordion-header {
    width: 100%;
    padding: 18px 24px;
    background-color: white;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.3s ease;
    text-align: left;
}

.accordion-header:hover {
    background-color: #f5f6f7;
    color: var(--primary-color);
}

.accordion-item.active .accordion-header {
    background-color: #1d3557;
    color: white;
}

.accordion-title {
    flex: 1;
    display: flex;
    align-items: center;
    font-weight: 600;
}

.accordion-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--light-bg);
    margin-left: 12px;
    font-size: 1.4rem;
    font-weight: bold;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.accordion-item.active .accordion-icon {
    background-color: rgba(255, 255, 255, 0.2);
    transform: rotate(45deg);
    color: white;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.accordion-body {
    padding: 24px;
    background-color: white;
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1rem;
}

.accordion-item.active .accordion-body {
    background-color: #f8f9fa;
}

/* FAQ Section */
.faq-section {
    margin: 60px 0;
    padding: 40px 0;
}

.faq-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 15px;
}

.faq-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .accordion-header {
        padding: 14px 16px;
        font-size: 1rem;
    }

    .accordion-body {
        padding: 16px;
        font-size: 0.95rem;
    }

    .accordion-icon {
        width: 28px;
        height: 28px;
        font-size: 1.2rem;
        margin-left: 8px;
    }

    .faq-section h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .accordion-item {
        margin-bottom: 8px;
    }

    .chart-label {
        width: 90px;
        min-width: 70px;
        font-size: 0.9rem;
    }

    .chart-bar-fill {
        padding-right: 6px;
        font-size: 0.85rem;
    }

    .footer-content {
        text-align: center;
    }

    .footer-bottom {
        text-align: center;
    }
}

/* Scroll to top button */
.scroll-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: rgba(230, 57, 70, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
    z-index: 999;
}

.scroll-to-top-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(247, 127, 0, 0.4);
}

.scroll-to-top-btn:active {
    transform: translateY(-2px);
}

.scroll-to-top-btn.show {
    display: flex;
}

/* Mobile responsiveness for scroll to top button */
@media (max-width: 768px) {
    .scroll-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .scroll-to-top-btn:hover {
        transform: translateY(-3px);
    }
}

/* Admin Panel Mobile Responsiveness */
@media (max-width: 1024px) {
    /* Tablet screens */
    .admin-panel {
        padding: 1.5rem 0;
    }

    .admin-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .admin-tab {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }

    /* Tablet button sizing */
    .btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }

    .btn-primary,
    .btn-secondary,
    .btn-danger,
    .btn-warning,
    .btn-info,
    .btn-success {
        padding: 0.4rem 0.7rem;
        font-size: 0.8rem;
    }

    .admin-table .btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.7rem;
    }

    .modal-dialog {
        max-width: 90%;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Mobile phones - landscape and up */
    .container {
        padding: 0 10px;
    }

    .admin-panel {
        padding: 0.8rem 0;
    }

    /* Beautiful tab navigation */
    .admin-tabs {
        display: flex;
        overflow-x: auto;
        gap: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        flex-wrap: nowrap;
        padding: 0.5rem;
        background: rgba(29, 53, 87, 0.03);
        border-radius: 8px;
        margin-bottom: 1rem;
    }

    .admin-tabs::-webkit-scrollbar {
        height: 3px;
    }

    .admin-tabs::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 4px;
    }

    .admin-tabs::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 4px;
    }

    .admin-tab {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        white-space: nowrap;
        flex-shrink: 0;
        border-radius: 6px;
        background: white;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .admin-tab.active {
        background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
        color: white;
        box-shadow: 0 2px 6px rgba(230, 57, 70, 0.3);
    }

    /* Clean header */
    .admin-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        margin-bottom: 1.2rem;
    }

    .admin-header h2 {
        font-size: 1.4rem;
        margin: 0;
    }

    .admin-header button {
        width: 100%;
        padding: 0.8rem;
        font-size: 0.9rem;
        border-radius: 6px;
    }

    /* Beautiful table styling */
    .admin-table-container {
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        margin-bottom: 1rem;
    }

    .admin-table {
        width: 100%;
        font-size: 0.8rem;
    }

    .admin-table thead {
        background: linear-gradient(135deg, var(--secondary-color), var(--dark-bg));
    }

    .admin-table th {
        padding: 0.7rem 0.5rem;
        font-size: 0.75rem;
        font-weight: 600;
        text-align: left;
    }

    .admin-table td {
        padding: 0.7rem 0.5rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        vertical-align: middle;
    }

    .admin-table tbody tr {
        background: white;
        transition: background-color 0.2s;
    }

    .admin-table tbody tr:hover {
        background-color: rgba(230, 57, 70, 0.02);
    }

    /* Show only essential columns */
    .admin-table td:nth-child(n+5):not(:last-child),
    .admin-table th:nth-child(n+5):not(:last-child) {
        display: none;
    }

    /* Keep action column visible */
    .admin-table td:last-child,
    .admin-table th:last-child {
        display: table-cell;
        width: auto;
    }

    /* Beautiful button styling */
    .btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
        white-space: nowrap;
        letter-spacing: 0;
        border-radius: 4px;
        font-weight: 500;
    }

    .btn-primary,
    .btn-secondary,
    .btn-danger,
    .btn-warning,
    .btn-info,
    .btn-success {
        padding: 0.4rem 0.7rem;
        font-size: 0.7rem;
        border-radius: 4px;
    }

    /* Compact and beautiful table buttons */
    .admin-table td:last-child {
        padding: 0.5rem;
    }

    .admin-table .btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.7rem;
        margin: 0.15rem;
        display: inline-block;
        min-width: auto;
    }

    /* Button icons for mobile */
    .admin-table .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.2rem;
    }

    /* Beautiful modal styling */
    .modal-dialog {
        max-width: 92%;
        margin: 5% auto;
        border-radius: 12px;
        overflow: hidden;
    }

    .modal-dialog.modal-large {
        max-width: 92%;
    }

    .modal-content-box {
        border-radius: 12px;
    }

    .modal-header {
        padding: 1rem;
        background: linear-gradient(135deg, var(--secondary-color), var(--dark-bg));
        color: white;
    }

    .modal-header h3 {
        font-size: 1.1rem;
        margin: 0;
    }

    .modal-close {
        font-size: 1.5rem;
        color: white;
    }

    .modal-body {
        padding: 1rem;
        max-height: 65vh;
        overflow-y: auto;
    }

    .modal-footer {
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }

    .modal-footer button {
        width: 100%;
        padding: 0.75rem;
        border-radius: 6px;
        font-size: 0.9rem;
    }

    /* Beautiful form styling */
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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

    .form-group label {
        display: block;
        margin-bottom: 0.4rem;
        font-weight: 600;
        color: var(--secondary-color);
        font-size: 0.85rem;
    }

    .form-input,
    .form-select,
    input[type="text"],
    input[type="email"],
    input[type="number"],
    input[type="date"],
    input[type="password"],
    select,
    textarea {
        width: 100%;
        padding: 0.7rem;
        font-size: 1rem;
        border: 1.5px solid rgba(0, 0, 0, 0.1);
        border-radius: 6px;
        transition: border-color 0.3s;
    }

    .form-input:focus,
    .form-select:focus,
    input:focus,
    select:focus,
    textarea:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
    }

    /* Beautiful statistics grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .stat-card {
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        background: white;
    }

    .stat-icon {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .stat-info h3 {
        font-size: 1.5rem;
        margin: 0.3rem 0;
        color: var(--primary-color);
    }

    .stat-info p {
        font-size: 0.8rem;
        color: #666;
        margin: 0;
    }

    /* Filter controls */
    .filter-controls {
        flex-direction: column;
        gap: 0.8rem;
    }

    .filter-select,
    .filter-input {
        width: 100%;
    }

    /* Date filter */
    [style*="display: grid"] {
        grid-template-columns: 1fr !important;
    }

    /* Activity log table specific */
    #activityLogTableBody td {
        word-break: break-word;
    }

    /* Hide IP address on small screens */
    .admin-table td:nth-child(6) {
        display: none !important;
    }

    .admin-table th:nth-child(6) {
        display: none !important;
    }
}

@media (max-width: 480px) {
    /* Very small mobile screens - extra clean */
    .container {
        padding: 0 8px;
    }

    .admin-panel {
        padding: 0.5rem 0;
    }

    .admin-tabs {
        gap: 0.3rem;
        padding: 0.4rem;
    }

    .admin-tab {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

    .admin-header h2 {
        font-size: 1.2rem;
    }

    .admin-header button {
        padding: 0.7rem;
        font-size: 0.85rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.5rem 0.3rem;
        font-size: 0.75rem;
    }

    .admin-table th {
        font-size: 0.7rem;
    }

    /* Optimized buttons */
    .btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
        letter-spacing: 0;
    }

    .btn-primary,
    .btn-secondary,
    .btn-danger,
    .btn-warning,
    .btn-info,
    .btn-success {
        padding: 0.35rem 0.5rem;
        font-size: 0.65rem;
    }

    .admin-table .btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.65rem;
        margin: 0.1rem;
    }

    .modal-dialog {
        max-width: 96%;
        margin: 10% auto;
    }

    .modal-body {
        max-height: 55vh;
        padding: 0.8rem;
    }

    .modal-footer button {
        padding: 0.65rem;
    }

    .stat-card {
        padding: 0.8rem;
    }

    .stat-icon {
        font-size: 1.5rem;
    }

    .stat-info h3 {
        font-size: 1.3rem;
    }

    .stat-info p {
        font-size: 0.75rem;
    }

    .stats-grid {
        gap: 0.6rem;
    }

    /* Show only essential columns */
    .admin-table td:nth-child(4),
    .admin-table th:nth-child(4) {
        display: none;
    }

    .admin-table td:nth-child(5),
    .admin-table th:nth-child(5) {
        display: none;
    }

    .form-input,
    .form-select,
    input,
    select,
    textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Simplify button layout */
    .btn-group {
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
    }

    .btn-group button {
        width: 100%;
    }

    /* Compact table */
    .admin-table {
        white-space: nowrap;
    }

    /* Better touch targets */
    button,
    input[type="button"],
    input[type="submit"] {
        min-height: 44px; /* iOS recommended touch target size */
    }
}

/* Table card view for very small screens */
@media (max-width: 600px) {
    /* Optional: Convert table to card view layout for extreme readability */
    .admin-table.card-view {
        display: block;
    }

    .admin-table.card-view thead {
        display: none;
    }

    .admin-table.card-view tbody,
    .admin-table.card-view tr {
        display: block;
        width: 100%;
    }

    .admin-table.card-view tr {
        margin-bottom: 1rem;
        background: white;
        border: 1px solid #eee;
        border-radius: 4px;
        padding: 0.5rem;
    }

    .admin-table.card-view td {
        display: block;
        padding: 0.5rem;
        text-align: left;
        border: none;
    }

    .admin-table.card-view td:before {
        content: attr(data-label);
        font-weight: bold;
        display: block;
        color: var(--secondary-color);
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
    }
}

/* Enhanced touch interaction feedback */
@media (hover: none) and (pointer: coarse) {
    /* Mobile/touch devices */
    button {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }

    .admin-tab:active {
        opacity: 0.8;
    }

    .btn:active {
        transform: scale(0.98);
    }

    /* Reduce animation on low-power devices */
    @media (prefers-reduced-motion: reduce) {
        * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
}

/* ==================== USER DETAIL CARD STYLES ==================== */

/* User Detail Card Styles */
.user-detail-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.detail-section {
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
}

.detail-section:last-child {
    border-bottom: none;
}

.detail-section h4 {
    margin: 0 0 1rem 0;
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 600;
}

.detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1rem;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-item label {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.detail-value {
    font-size: 1rem;
    color: var(--text-dark);
    margin: 0;
    word-break: break-word;
}

/* ==================== PAGINATION STYLES ==================== */

.pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
    padding: 20px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    background-color: white;
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}

.pagination-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    font-weight: 700;
}

.pagination-btn:disabled {
    background-color: #f0f0f0;
    color: #ccc;
    border-color: #e0e0e0;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination-ellipsis {
    color: var(--text-dark);
    font-weight: 700;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
}

.pagination-info {
    color: var(--text-dark);
    font-size: 14px;
    text-align: center;
    opacity: 0.8;
}

/* Responsive pagination */
@media (max-width: 600px) {
    .pagination-btn {
        min-width: 36px;
        height: 36px;
        padding: 6px 10px;
        font-size: 14px;
    }

    .pagination {
        gap: 4px;
    }
}
