/* Custom CSS for Stomatologiya Klinika */

:root {
    --primary-color: #2c5aa0;
    --secondary-color: #17a2b8;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-color);
    margin: 0;
    padding: 0;
}

.navbar-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-custom .navbar-brand {
    color: white !important;
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-custom .nav-link {
    color: rgba(255,255,255,0.9) !important;
    transition: color 0.3s ease;
}

.navbar-custom .nav-link:hover {
    color: white !important;
}

.search-container {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.search-input {
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    padding: 12px 20px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.2);
    border-color: var(--secondary-color);
}

.btn-search {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 25px;
    padding: 12px 25px;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: white;
}

/* Default - Kategoriya filtrlar */
.category-filters {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
}

.category-btn {
    background: var(--light-color);
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 6px 15px;
    margin: 3px;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.85rem;
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.item-card {
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 5px;
    border: none;
}

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

.item-image {
    width: 100%;
    height: 70px; /* Juda juda kichik rasm */
    object-fit: cover;
    border-radius: 6px 6px 0 0;
}

.item-placeholder {
    width: 100%;
    height: 70px; /* Juda juda kichik rasm */
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px; /* Juda kichik icon */
    border-radius: 6px 6px 0 0;
}

.item-card-body {
    padding: 6px;
}

.item-title {
    color: var(--dark-color);
    font-weight: bold;
    font-size: 0.65rem;
    margin-bottom: 2px;
    line-height: 1.0;
}

.item-price {
    color: var(--success-color);
    font-size: 0.7rem;
    font-weight: bold;
    margin-bottom: 3px;
}

.item-description {
    color: #666;
    font-size: 0.55rem;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.1;
}

.item-details {
    font-size: 0.6rem;
    color: #666;
    margin-bottom: 6px;
}

.btn-details {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 15px;
    padding: 6px 12px;
    color: white;
    font-size: 0.8rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-details:hover {
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.social-links {
    background: var(--dark-color);
    padding: 30px 0;
    margin-top: 50px;
}

.social-links h5 {
    color: white;
    text-align: center;
    margin-bottom: 20px;
}

.social-link {
    color: white;
    font-size: 2rem;
    margin: 0 15px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    color: var(--secondary-color);
    text-decoration: none;
    transform: translateY(-3px);
}

.detail-container {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.detail-image {
    width: 100%;
    max-width: 500px;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 20px;
}

.detail-title {
    color: var(--dark-color);
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.detail-price {
    color: var(--success-color);
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.detail-info {
    background: var(--light-color);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: bold;
    color: var(--dark-color);
}

.info-value {
    color: var(--primary-color);
    font-weight: 500;
}

/* Admin Panel Styles */
.admin-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.admin-form {
    background: var(--light-color);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.admin-table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.btn-admin {
    border-radius: 20px;
    padding: 8px 20px;
    font-weight: 500;
    border: none;
    transition: all 0.3s ease;
}

.btn-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .item-title {
        font-size: 1.1rem;
    }
    
    .item-price {
        font-size: 1.3rem;
    }
    
    .detail-title {
        font-size: 2rem;
    }
    
    .detail-price {
        font-size: 1.5rem;
    }
    
    .social-link {
        font-size: 1.5rem;
        margin: 0 10px;
    }
}

/* Mobile - Telegram WebApp (max-width: 480px) */
@media (max-width: 480px) {
    .container {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    /* Navbar mobile */
    .navbar-custom .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-custom .nav-link {
        font-size: 0.85rem;
        padding: 0.3rem 0.5rem;
    }
    
    /* Search mobile */
    .search-container {
        padding: 12px;
        margin: 10px 0;
        border-radius: 10px;
    }
    
    .search-input {
        padding: 8px 15px;
        font-size: 14px;
        border-radius: 20px;
    }
    
    .btn-search {
        padding: 8px 15px;
        font-size: 0.8rem;
        border-radius: 20px;
    }
    
    /* Kategoriya mobile */
    .category-filters {
        padding: 10px;
        margin: 10px 0;
        border-radius: 8px;
    }
    
    .category-btn {
        padding: 4px 10px;
        margin: 2px;
        font-size: 0.65rem;
        border-radius: 12px;
        border-width: 1px;
    }
    
    /* Item mobile */
    .item-image, .item-placeholder {
        height: 80px;
    }
    
    .item-placeholder {
        font-size: 18px;
    }
    
    .item-card-body {
        padding: 8px;
    }
    
    .item-title {
        font-size: 0.7rem;
        margin-bottom: 3px;
    }
    
    .item-price {
        font-size: 0.8rem;
        margin-bottom: 3px;
    }
    
    .item-description {
        font-size: 0.6rem;
        margin-bottom: 5px;
    }
    
    .btn-details {
        padding: 4px 8px;
        font-size: 0.6rem;
    }
    
    /* Footer mobile */
    .social-links {
        padding: 20px 0;
        margin-top: 30px;
    }
    
    .social-links h5 {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .social-link {
        font-size: 1.5rem;
        margin: 0 10px;
    }
    
    /* Detail page mobile */
    .detail-container {
        padding: 15px;
        margin: 10px 0;
        border-radius: 10px;
    }
    
    .detail-image {
        height: 200px;
        margin-bottom: 15px;
    }
    
    .detail-title {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .detail-price {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .detail-info {
        padding: 12px;
        margin: 12px 0;
    }
    
    .info-item {
        padding: 6px 0;
        font-size: 0.8rem;
    }
}

/* Tablet - iPad (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    /* Navbar tablet */
    .navbar-custom .navbar-brand {
        font-size: 1.3rem;
    }
    
    /* Search tablet */
    .search-container {
        padding: 18px;
        margin: 18px 0;
    }
    
    .search-input {
        padding: 10px 18px;
        font-size: 15px;
    }
    
    .btn-search {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Kategoriya tablet */
    .category-filters {
        padding: 15px;
        margin: 15px 0;
    }
    
    .category-btn {
        padding: 6px 16px;
        margin: 4px;
        font-size: 0.8rem;
        border-radius: 16px;
    }
    
    /* Item tablet */
    .item-image, .item-placeholder {
        height: 120px;
    }
    
    .item-placeholder {
        font-size: 28px;
    }
    
    .item-card-body {
        padding: 12px;
    }
    
    .item-title {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    .item-price {
        font-size: 1rem;
        margin-bottom: 5px;
    }
    
    .item-description {
        font-size: 0.75rem;
        margin-bottom: 8px;
    }
    
    .btn-details {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    /* Footer tablet */
    .social-links {
        padding: 25px 0;
        margin-top: 40px;
    }
    
    .social-links h5 {
        font-size: 1.2rem;
    }
    
    .social-link {
        font-size: 1.8rem;
        margin: 0 12px;
    }
    
    /* Detail page tablet */
    .detail-container {
        padding: 25px;
        margin: 18px 0;
        border-radius: 15px;
    }
    
    .detail-image {
        height: 300px;
        margin-bottom: 18px;
    }
    
    .detail-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .detail-price {
        font-size: 1.6rem;
        margin-bottom: 18px;
    }
    
    .detail-info {
        padding: 18px;
        margin: 18px 0;
    }
}

/* Desktop (min-width: 769px) */
@media (min-width: 769px) {
    /* Navbar desktop */
    .navbar-custom .navbar-brand {
        font-size: 1.6rem;
    }
    
    .navbar-custom .nav-link {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
    
    /* Search desktop */
    .search-container {
        padding: 25px;
        margin: 25px 0;
        border-radius: 15px;
    }
    
    .search-input {
        padding: 15px 25px;
        font-size: 18px;
    }
    
    .btn-search {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    /* Kategoriya desktop */
    .category-filters {
        padding: 20px;
        margin: 20px 0;
        border-radius: 15px;
    }
    
    .category-btn {
        padding: 10px 25px;
        margin: 6px;
        font-size: 1rem;
        border-radius: 20px;
    }
    
    /* Item desktop */
    .item-image, .item-placeholder {
        height: 160px;
    }
    
    .item-placeholder {
        font-size: 36px;
    }
    
    .item-card-body {
        padding: 15px;
    }
    
    .item-title {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .item-price {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }
    
    .item-description {
        font-size: 0.9rem;
        margin-bottom: 12px;
        -webkit-line-clamp: 2;
    }
    
    .btn-details {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    /* Footer desktop */
    .social-links {
        padding: 35px 0;
        margin-top: 50px;
    }
    
    .social-links h5 {
        font-size: 1.4rem;
        margin-bottom: 25px;
    }
    
    .social-link {
        font-size: 2.2rem;
        margin: 0 18px;
    }
    
    /* Detail page desktop */
    .detail-container {
        padding: 35px;
        margin: 25px 0;
        border-radius: 20px;
    }
    
    .detail-image {
        height: 450px;
        margin-bottom: 25px;
    }
    
    .detail-title {
        font-size: 2.8rem;
        margin-bottom: 25px;
    }
    
    .detail-price {
        font-size: 2.2rem;
        margin-bottom: 25px;
    }
    
    .detail-info {
        padding: 25px;
        margin: 25px 0;
    }
    
    .info-item {
        padding: 12px 0;
        font-size: 1.1rem;
    }
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--light-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Admin Panel Responsive Styles */

/* Mobile - Telegram WebApp (max-width: 480px) */
@media (max-width: 480px) {
    /* Admin Login Responsive */
    .admin-container {
        padding: 15px;
        margin: 10px 0;
        border-radius: 10px;
    }
    
    .admin-container h2 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    .admin-container .fa-4x {
        font-size: 2.5rem !important;
    }
    
    .admin-container .form-label {
        font-size: 0.85rem;
        font-weight: 600;
    }
    
    .admin-container .form-control {
        font-size: 14px;
        padding: 10px 12px;
        border-radius: 8px;
    }
    
    .admin-container .btn-lg {
        font-size: 0.9rem;
        padding: 12px 20px;
        border-radius: 8px;
    }
    
    /* Admin Dashboard Responsive */
    .container-fluid {
        padding: 0 10px;
    }
    
    .admin-container h1 {
        font-size: 1.4rem;
        margin-bottom: 0.3rem;
    }
    
    .admin-container h1 .fa-tachometer-alt {
        font-size: 1.2rem;
    }
    
    .admin-container p.text-muted {
        font-size: 0.8rem;
    }
    
    /* Header buttons mobile */
    .d-flex.justify-content-between.align-items-center {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .d-flex.justify-content-between.align-items-center > div:last-child {
        align-self: stretch;
    }
    
    .d-flex.justify-content-between.align-items-center .btn {
        font-size: 0.75rem;
        padding: 6px 12px;
        display: block;
        width: 48%;
        margin-bottom: 5px;
    }
    
    .d-flex.justify-content-between.align-items-center > div:last-child {
        display: flex;
        gap: 8px;
    }
    
    /* Statistics cards mobile */
    .card h4 {
        font-size: 1.1rem;
    }
    
    .card p {
        font-size: 0.7rem;
        margin-bottom: 0;
    }
    
    .card .fa-2x {
        font-size: 1.3rem !important;
    }
    
    .card-body {
        padding: 12px;
    }
    
    /* Navigation tabs mobile */
    .nav-tabs {
        border-bottom: 1px solid #dee2e6;
        margin-bottom: 15px;
    }
    
    .nav-tabs .nav-link {
        font-size: 0.8rem;
        padding: 8px 12px;
        border-radius: 6px 6px 0 0;
    }
    
    .nav-tabs .nav-link i {
        font-size: 0.7rem;
        margin-right: 5px;
    }
    
    /* Admin forms mobile */
    .admin-form {
        padding: 15px;
        border-radius: 8px;
        margin-bottom: 20px;
    }
    
    .admin-form h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .admin-form h3 i {
        font-size: 1rem;
    }
    
    .admin-form .form-label {
        font-size: 0.8rem;
        font-weight: 600;
        margin-bottom: 5px;
    }
    
    .admin-form .form-control,
    .admin-form .form-select {
        font-size: 14px;
        padding: 8px 10px;
        border-radius: 6px;
    }
    
    .admin-form textarea.form-control {
        min-height: 80px;
    }
    
    .admin-form .btn-admin {
        font-size: 0.8rem;
        padding: 8px 16px;
        border-radius: 6px;
        width: 100%;
        margin-top: 10px;
    }
    
    /* Admin tables mobile */
    .table-responsive {
        border-radius: 8px;
        margin-bottom: 0;
    }
    
    .admin-table .table {
        font-size: 0.75rem;
        margin-bottom: 0;
    }
    
    .admin-table .table th {
        padding: 8px 6px;
        font-size: 0.7rem;
        font-weight: 600;
        white-space: nowrap;
    }
    
    .admin-table .table td {
        padding: 8px 6px;
        vertical-align: middle;
    }
    
    .admin-table .table td strong {
        font-size: 0.75rem;
    }
    
    .admin-table .table td small {
        font-size: 0.65rem;
    }
    
    .admin-table .table img {
        width: 35px !important;
        height: 35px !important;
        border-radius: 6px !important;
    }
    
    .admin-table .table .badge {
        font-size: 0.65rem;
        padding: 3px 6px;
    }
    
    .admin-table .table .btn-sm {
        font-size: 0.7rem;
        padding: 4px 8px;
        border-radius: 4px;
    }
    
    .admin-table .table .btn-sm i {
        font-size: 0.65rem;
    }
    
    /* Hide some columns on mobile but keep actions visible */
    /* Categories table - hide description and date, keep actions */
    .table#categoriesTable th:nth-child(3),
    .table#categoriesTable td:nth-child(3),
    .table#categoriesTable th:nth-child(5),
    .table#categoriesTable td:nth-child(5) {
        display: none;
    }
    
    /* Items table - hide duration and sessions, keep actions */
    .table#itemsTable th:nth-child(6),
    .table#itemsTable td:nth-child(6),
    .table#itemsTable th:nth-child(7),
    .table#itemsTable td:nth-child(7) {
        display: none;
    }
    
    /* Ensure actions column is always visible */
    .table th:last-child,
    .table td:last-child {
        display: table-cell !important;
        min-width: 80px;
        text-align: center;
    }
    
    /* Image preview mobile */
    #imagePreview {
        max-width: 120px !important;
        max-height: 120px !important;
        border-radius: 6px !important;
    }
}

/* Tablet (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    /* Admin Login Responsive */
    .admin-container {
        padding: 20px;
        margin: 15px 0;
        border-radius: 12px;
    }
    
    .admin-container h2 {
        font-size: 1.5rem;
    }
    
    .admin-container .fa-4x {
        font-size: 3rem !important;
    }
    
    .admin-container .form-label {
        font-size: 0.9rem;
    }
    
    .admin-container .form-control {
        font-size: 15px;
        padding: 12px 15px;
        border-radius: 10px;
    }
    
    .admin-container .btn-lg {
        font-size: 1rem;
        padding: 14px 24px;
        border-radius: 10px;
    }
    
    /* Admin Dashboard Responsive */
    .container-fluid {
        padding: 0 15px;
    }
    
    .admin-container h1 {
        font-size: 1.6rem;
    }
    
    .admin-container h1 .fa-tachometer-alt {
        font-size: 1.4rem;
    }
    
    /* Header buttons tablet */
    .d-flex.justify-content-between.align-items-center .btn {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
    
    /* Statistics cards tablet */
    .card h4 {
        font-size: 1.3rem;
    }
    
    .card p {
        font-size: 0.8rem;
    }
    
    .card .fa-2x {
        font-size: 1.5rem !important;
    }
    
    .card-body {
        padding: 15px;
    }
    
    /* Navigation tabs tablet */
    .nav-tabs .nav-link {
        font-size: 0.9rem;
        padding: 10px 16px;
    }
    
    .nav-tabs .nav-link i {
        font-size: 0.8rem;
    }
    
    /* Admin forms tablet */
    .admin-form {
        padding: 20px;
        border-radius: 10px;
    }
    
    .admin-form h3 {
        font-size: 1.2rem;
    }
    
    .admin-form .form-label {
        font-size: 0.9rem;
    }
    
    .admin-form .form-control,
    .admin-form .form-select {
        font-size: 15px;
        padding: 10px 12px;
        border-radius: 8px;
    }
    
    .admin-form textarea.form-control {
        min-height: 100px;
    }
    
    .admin-form .btn-admin {
        font-size: 0.9rem;
        padding: 10px 20px;
        border-radius: 8px;
        width: auto;
    }
    
    /* Admin tables tablet */
    .admin-table .table {
        font-size: 0.85rem;
    }
    
    .admin-table .table th {
        padding: 10px 8px;
        font-size: 0.8rem;
    }
    
    .admin-table .table td {
        padding: 10px 8px;
    }
    
    .admin-table .table img {
        width: 45px !important;
        height: 45px !important;
        border-radius: 8px !important;
    }
    
    .admin-table .table .badge {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    .admin-table .table .btn-sm {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
    
    /* Show more columns on tablet */
    /* Categories table - show description, hide date */
    .table#categoriesTable th:nth-child(3),
    .table#categoriesTable td:nth-child(3) {
        display: table-cell;
    }
    
    .table#categoriesTable th:nth-child(5),
    .table#categoriesTable td:nth-child(5) {
        display: none;
    }
    
    /* Items table - show duration, hide sessions */
    .table#itemsTable th:nth-child(6),
    .table#itemsTable td:nth-child(6) {
        display: table-cell;
    }
    
    .table#itemsTable th:nth-child(7),
    .table#itemsTable td:nth-child(7) {
        display: none;
    }
    
    /* Actions always visible */
    .table th:last-child,
    .table td:last-child {
        display: table-cell !important;
    }
    
    /* Image preview tablet */
    #imagePreview {
        max-width: 150px !important;
        max-height: 150px !important;
        border-radius: 8px !important;
    }
}

/* Desktop (769px+) */
@media (min-width: 769px) {
    /* Admin Login Responsive */
    .admin-container {
        padding: 30px;
        margin: 20px 0;
        border-radius: 15px;
    }
    
    .admin-container h2 {
        font-size: 1.8rem;
    }
    
    .admin-container .fa-4x {
        font-size: 4rem !important;
    }
    
    .admin-container .form-label {
        font-size: 1rem;
    }
    
    .admin-container .form-control {
        font-size: 16px;
        padding: 15px 18px;
        border-radius: 12px;
    }
    
    .admin-container .btn-lg {
        font-size: 1.1rem;
        padding: 16px 30px;
        border-radius: 12px;
    }
    
    /* Admin Dashboard Responsive */
    .container-fluid {
        padding: 0 20px;
    }
    
    .admin-container h1 {
        font-size: 1.8rem;
    }
    
    .admin-container h1 .fa-tachometer-alt {
        font-size: 1.6rem;
    }
    
    /* Header buttons desktop */
    .d-flex.justify-content-between.align-items-center .btn {
        font-size: 1rem;
        padding: 10px 20px;
    }
    
    /* Statistics cards desktop */
    .card h4 {
        font-size: 1.5rem;
    }
    
    .card p {
        font-size: 0.9rem;
    }
    
    .card .fa-2x {
        font-size: 2rem !important;
    }
    
    .card-body {
        padding: 20px;
    }
    
    /* Navigation tabs desktop */
    .nav-tabs .nav-link {
        font-size: 1rem;
        padding: 12px 20px;
    }
    
    .nav-tabs .nav-link i {
        font-size: 0.9rem;
    }
    
    /* Admin forms desktop */
    .admin-form {
        padding: 25px;
        border-radius: 12px;
    }
    
    .admin-form h3 {
        font-size: 1.4rem;
    }
    
    .admin-form .form-label {
        font-size: 1rem;
    }
    
    .admin-form .form-control,
    .admin-form .form-select {
        font-size: 16px;
        padding: 12px 15px;
        border-radius: 10px;
    }
    
    .admin-form textarea.form-control {
        min-height: 120px;
    }
    
    .admin-form .btn-admin {
        font-size: 1rem;
        padding: 12px 24px;
        border-radius: 10px;
        width: auto;
    }
    
    /* Admin tables desktop */
    .admin-table .table {
        font-size: 0.9rem;
    }
    
    .admin-table .table th {
        padding: 12px 10px;
        font-size: 0.85rem;
    }
    
    .admin-table .table td {
        padding: 12px 10px;
    }
    
    .admin-table .table img {
        width: 50px !important;
        height: 50px !important;
        border-radius: 10px !important;
    }
    
    .admin-table .table .badge {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
    
    .admin-table .table .btn-sm {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    
    /* Show all columns on desktop */
    .table th,
    .table td {
        display: table-cell;
    }
    
    /* Image preview desktop */
    #imagePreview {
        max-width: 200px !important;
        max-height: 200px !important;
        border-radius: 10px !important;
    }
}

/* Special mobile optimizations for admin panels */
@media (max-width: 480px) {
    /* Compact table for mobile - stack important info */
    .admin-table .table tbody tr {
        border-bottom: 2px solid #f8f9fa;
        margin-bottom: 10px;
    }
    
    .admin-table .table td {
        border: none;
        padding: 4px 6px;
    }
    
    /* Make action buttons touch-friendly */
    .admin-table .table .btn-sm {
        min-width: 40px;
        min-height: 40px;
        padding: 10px;
        margin: 2px;
        border-radius: 8px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .admin-table .table .btn-sm i {
        font-size: 0.8rem !important;
    }
    
    /* Ensure delete forms are inline */
    .admin-table .table td form {
        display: inline-block;
        margin: 0;
    }
    
    /* Better form spacing on mobile */
    .admin-form .row .col-md-6 {
        margin-bottom: 10px;
    }
    
    .admin-form .mb-3 {
        margin-bottom: 15px !important;
    }
    
    /* Optimize file input for mobile */
    .admin-form input[type="file"] {
        font-size: 14px;
        padding: 8px;
    }
    
    .admin-form .form-text {
        font-size: 0.7rem;
        margin-top: 5px;
    }
}