:root {
    --gold-primary: #D4AF37;
    --gold-light: #F5D76E;
    --gold-dark: #B8860B;
    --white: #FFFFFF;
    --gray-light: #F8F9FA;
    --gray-medium: #E9ECEF;
    --gray-dark: #6C757D;
    --text-dark: #212529;
    --text-light: #495057;
    --success: #28A745;
    --danger: #DC3545;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-gold: 0 4px 15px rgba(212, 175, 55, 0.3);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
}

/* === RESET I BAZA === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--gray-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* === NAGŁÓWEK === */
.header {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: var(--white);
    padding: 1rem 0;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--white);
}

.logo img {
    height: 50px;
    width: auto;
}

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

.logo-name {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-tagline {
    font-size: 0.75rem;
    opacity: 0.9;
}

/* Nawigacja */
.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: background 0.3s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
}

.nav-user-name {
    color: var(--white);
    font-weight: 500;
    padding: 0.5rem 0.5rem 0.5rem 1rem;
}

.nav-logout {
    padding-left: 0.5rem;
}

.cart-icon {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
    position: relative;
}

.cart-icon:hover {
    background: rgba(255, 255, 255, 0.25);
}

.cart-count {
    background: var(--danger);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 20px;
    text-align: center;
}

/* === GŁÓWNA ZAWARTOŚĆ === */
.main {
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

/* === SORTOWANIE === */
.sort-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.products-count {
    color: var(--text-light);
}

.sort-select {
    padding: 0.5rem 1rem;
    border: 2px solid var(--gray-medium);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    background: var(--white);
    cursor: pointer;
}

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

/* === GRID PRODUKTÓW === */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* === KARTA PRODUKTU === */
.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product-image-wrapper {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, var(--gray-light) 0%, var(--gray-medium) 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
}

.product-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 10;
}

.product-badge img {
    height: 40px;
    width: auto;
}

.product-content {
    padding: 1rem;
}

.product-category {
    font-size: 0.75rem;
    color: var(--gold-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.product-description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem;
    border-top: 1px solid var(--gray-medium);
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold-dark);
}

.product-price::after {
    content: ' zł';
    font-size: 0.9rem;
}

.product-stock {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.stock-available {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
}

.stock-unavailable {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger);
}

.product-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.product-btn:hover {
    box-shadow: var(--shadow-gold);
}

.product-btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.product-btn-disabled:hover {
    box-shadow: none;
}

.product-btn-details {
    flex: 0 0 auto;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 100%);
    color: var(--white);
    border: none;
    white-space: nowrap;
    margin-top: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0.3rem;
    padding-bottom: 0.7rem;
}

.product-btn-add {
    flex: 1;
    min-width: 0;
    margin-top: 0;
    color: var(--white);
    font-weight: 600;
}

/* Klikalny obrazek produktu */
.product-image-link {
    text-decoration: none;
    cursor: pointer;
}

/* Link do nazwy produktu */
.product-name a {
    color: var(--text-dark);
    text-decoration: none;
}

.product-name a:hover {
    color: var(--gold-dark);
}

.product-category {
    color: var(--gold-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    text-decoration: none;
    display: block;
}

.product-category:hover {
    text-decoration: underline;
}

/* === STRONA PRODUKTU === */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.product-detail-image {
    background: linear-gradient(135deg, var(--gray-light) 0%, var(--gray-medium) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.product-detail-image img {
    max-width: 80%;
    max-height: 350px;
    object-fit: contain;
}

/* === GALERIA ZDJĘĆ === */
.product-gallery {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.gallery-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.gallery-thumb:hover {
    opacity: 0.9;
}

.gallery-thumb.active {
    border-color: var(--gold-primary);
    opacity: 1;
}

.product-detail-info {
    display: flex;
    flex-direction: column;
}

.product-detail-category {
    font-size: 0.85rem;
    color: var(--gold-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.product-detail-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

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

.product-detail-price::after {
    content: ' zł';
    font-size: 1.5rem;
}

.product-detail-description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.product-detail-stock {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.product-detail-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.btn-primary {
    flex: 1;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary:hover {
    box-shadow: var(--shadow-gold);
}

.btn-secondary {
    padding: 1rem 2rem;
    background: var(--white);
    color: var(--gold-dark);
    border: 2px solid var(--gold-primary);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

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

/* === KOSZYK === */
.cart-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

.cart-items {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.cart-title {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gold-primary);
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-medium);
}

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

.cart-item-image {
    width: 100px;
    height: 100px;
    background: var(--gray-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-image img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.cart-item-category {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.cart-item-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-dark);
    margin-top: auto;
}

.cart-item-price::after {
    content: ' zł';
    font-size: 0.9rem;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
}

/* Podsumowanie koszyka */
.cart-summary {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.cart-summary-title {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-light);
}

.cart-summary-row:last-of-type {
    border-bottom: none;
}

.cart-summary-total {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-dark);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--gold-primary);
}

.cart-summary-total::after {
    content: ' zł';
    font-size: 1rem;
}

.btn-checkout {
    width: 100%;
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-checkout:hover {
    box-shadow: var(--shadow-gold);
}

.cart-empty {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.cart-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.cart-empty-text {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

/* === STOPKA === */
.footer {
    background: linear-gradient(135deg, var(--text-dark) 0%, #1a1a2e 100%);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-section h4 {
    color: var(--gold-light);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

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

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-top: 2rem;
}

/* === BREADCRUMBS === */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--gold-dark);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--gold-primary);
}

.breadcrumbs span {
    color: var(--text-light);
}

/* === RESPONSYWNOŚĆ === */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .product-detail {
        grid-template-columns: 1fr;
    }
    .cart-container {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .nav-list {
        display: none;
    }
    .header-container {
        flex-wrap: wrap;
    }
    .product-detail-image {
        min-height: 250px;
    }
    .product-detail-price {
        font-size: 2rem;
    }
    .product-detail-name {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr;
    }
}

/* === UTILITY === */
.hidden { display: none !important; }

/* ============================================
   PANEL ADMINISTRACYJNY
   ============================================ */

/* Dostęp zabroniony */
.admin-access-denied {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 500px;
    margin: 3rem auto;
}

.admin-denied-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.admin-access-denied h2 {
    color: var(--danger);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.admin-access-denied p {
    color: var(--text-light);
}

/* Nagłówek panelu */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.admin-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
}

.admin-btn-add {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--success) 0%, #1e7e34 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

.admin-btn-add:hover {
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

/* Statystyki */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-stat-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
    border-left: 4px solid var(--gold-primary);
}

.admin-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-dark);
}

.admin-stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* Wyszukiwanie */
.admin-search {
    margin-bottom: 1rem;
}

.admin-search input {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-medium);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: var(--white);
    transition: border-color 0.3s ease;
}

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

/* Tabela produktów */
.admin-table-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.admin-table thead {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: var(--white);
}

.admin-table th {
    padding: 0.85rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.admin-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--gray-medium);
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background: var(--gray-light);
}

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

.admin-id {
    color: var(--gray-dark);
    font-weight: 600;
    font-size: 0.85rem;
}

.admin-product-name {
    font-weight: 600;
    color: var(--text-dark);
}

.admin-product-desc {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

.admin-category {
    font-size: 0.85rem;
    color: var(--gold-dark);
    font-weight: 500;
}

.admin-price {
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
}

.admin-stock-yes {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
    font-size: 0.85rem;
    font-weight: 600;
}

.admin-stock-no {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger);
    font-size: 0.85rem;
    font-weight: 600;
}

.admin-actions {
    white-space: nowrap;
}

.admin-btn-edit,
.admin-btn-delete-icon {
    background: none;
    border: 1px solid var(--gray-medium);
    border-radius: var(--radius-sm);
    padding: 0.4rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 0.5rem;
}

.admin-btn-edit {
    color: var(--gold-dark);
}

.admin-btn-edit:hover {
    background: var(--gold-light);
    border-color: var(--gold-primary);
}

.admin-btn-delete-icon {
    color: var(--danger);
}

.admin-btn-delete-icon:hover {
    background: rgba(220, 53, 69, 0.1);
    border-color: var(--danger);
}

.admin-no-products {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* === MODAL === */
.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.admin-modal-content {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 550px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    max-height: 90vh;
    overflow-y: auto;
}

.admin-modal-small {
    max-width: 420px;
}

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

.admin-modal-header h2 {
    font-size: 1.25rem;
    color: var(--text-dark);
}

.admin-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-dark);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
}

.admin-modal-close:hover {
    background: var(--gray-light);
    color: var(--danger);
}

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

.admin-modal-content .form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.admin-modal-content .form-group input,
.admin-modal-content .form-group textarea,
.admin-modal-content .form-group select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 2px solid var(--gray-medium);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    background: var(--white);
    transition: border-color 0.3s ease;
    font-family: inherit;
}

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

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

.admin-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-medium);
}

.admin-modal-actions .btn-primary {
    flex: none;
    padding: 0.65rem 1.5rem;
}

.admin-modal-actions .btn-secondary {
    padding: 0.65rem 1.5rem;
}

.admin-btn-delete {
    padding: 0.65rem 1.5rem;
    background: var(--danger);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

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

/* Wiadomości formularza w modalu */
.admin-modal-content .msg-success,
.admin-modal-content .msg-error {
    margin-top: 0.75rem;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

/* === ADMIN RESPONSONSYWNOŚĆ === */
@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .admin-stats {
        grid-template-columns: 1fr;
    }

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

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

    .admin-modal-content {
        padding: 1.5rem;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .admin-table th:nth-child(5),
    .admin-table td:nth-child(5) {
        display: none;
    }
}
