/* Globalne ustawienia */
:root {
    --accent-color: #3498db;
    --accent-color-dark: #2980b9;
    --sidebar-bg: #2c3e50;
    --background-color: #f4f6f9;
    --text-color: #222;
}

* {
    box-sizing: border-box;
}

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

/* Kontener panelu admina */
.admin-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    background-color: var(--sidebar-bg);
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}

.sidebar h2 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
    color: white;
}

/* Menu główne */
.menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu li {
    margin-bottom: 10px;
}

/* Linki menu */
.menu li a,
.menu-title {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px 15px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

/* Ikony w menu */
.icon {
    margin-right: 8px;
}

/* Linki menu */
.menu li a:hover {
    background-color: var(--accent-color);
}

/* Tytuł grupy menu */
.menu-title {
    cursor: default;
    font-weight: bold;
}

/* Podmenu */
.submenu {
    list-style: none;
    padding-left: 15px;
    margin-top: 5px;
}

.submenu li {
    margin-bottom: 5px;
}

.submenu li a {
    padding: 8px 15px;
    font-size: 14px;
    color: white;
}

/* Formularz wylogowania */
.logout-form {
    margin-top: 20px;
    text-align: center;
}

.logout-button {
    background-color: var(--accent-color);
    border: none;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.logout-button:hover {
    background-color: var(--accent-color-dark);
}

/* Kontent */
.content {
    flex: 1;
    margin-left: 250px;
    padding: 20px;
    background-color: white;
    min-height: 100vh;
}

.header {
    background-color: white;
    padding: 15px 20px;
    border-bottom: 1px solid var(--accent-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 0px;
}

.header h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
    color: rgb(34, 31, 31);
}

.main-content {
    padding-top: 20px;
    padding-bottom: 20px;
}

.button-add-wrapper {
    display: flex;
    justify-content: flex-start;
}

.button-add {
    display: flex;
    padding: 10px 15px;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

/* Form styles for admin panel forms */
.form-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 20px auto;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.form-control-file {
    border: none;
    font-size: 14px;
}

.form-section {
    margin-top: 30px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
}

.form-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.form-helper {
    display: block;
    margin-top: 6px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.4;
}

.form-grid {
    display: grid;
    gap: 20px;
}

.form-grid--two-columns {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.contact-preview {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.contact-preview__list {
    list-style: none;
    padding-left: 0;
    margin: 10px 0;
}

.contact-preview__list li {
    margin-bottom: 6px;
}

.contact-preview__list span {
    font-weight: 600;
    margin-right: 6px;
}

.contact-preview__list a {
    display: inline-block;
}

.contact-preview__list code {
    background-color: #f3f4f6;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: #111827;
    word-break: break-all;
}

/* Dashboard cards */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}


@media only screen and (max-width: 1100px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}



@media only screen and (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: repeat(1, 1fr);
    }
}


.stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 32px;
    color: var(--accent-color);
    margin-right: 15px;
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

button,
.btn {
    padding: 10px 15px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

button:hover,
.btn:hover {
    background-color: var(--accent-color-dark);
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-danger {
    background-color: #e74c3c;
}

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

.action-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.action-buttons--right {
    justify-content: flex-end;
    margin-bottom: 15px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge--scheduled {
    background-color: #f39c12;
}

.status-badge--queued {
    background-color: #2980b9;
}

.status-badge--sent {
    background-color: #27ae60;
}

.status-badge--failed {
    background-color: #e74c3c;
}

.status-badge--cancelled {
    background-color: #7f8c8d;
}

.list-container {
    margin-top: 40px;
}

.empty-state {
    padding: 20px;
    background-color: #ffffff;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    color: #6b7280;
    text-align: center;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.text-muted {
    color: #9ca3af;
}

.form-meta {
    margin-bottom: 20px;
    color: #4b5563;
}

.alert {
    padding: 10px;
    background-color: #f2dede;
    color: #a94442;
    border-radius: 4px;
    margin-bottom: 15px;
}

.info-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.info-card h2 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

.info-card p {
    margin: 0 0 16px;
    color: #4b5563;
    line-height: 1.6;
}

.info-card__url {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.info-card__url code {
    background-color: #f3f4f6;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: #111827;
    word-break: break-all;
}


/* NAWIGACJA TABELKI */

/* Ogólne ustawienia dla kontenera paginacji */
.pagination {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Stylizacja elementu <nav> wewnątrz paginacji */
.pagination nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0;
}

/* Mobilna wersja - pokazujemy elementy z klasą .sm\:hidden, ukrywamy .sm\:flex */
.pagination .sm\:hidden {
    display: flex;
}

.pagination .sm\:flex {
    display: none;
}

/* Desktop (min-width: 640px) - odwracamy wyświetlanie */
@media (min-width: 640px) {
    .pagination .sm\:hidden {
        display: none;
    }

    .pagination .sm\:flex {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
}

/* Podstawowy styl dla linków i elementów span w paginacji */
.pagination a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 15px;
    padding-right: 15px;
    height: 30px;
    margin-left: -1px;
    border: 1px solid #d1d5db;
    /* odpowiada border-gray-300 */
    background-color: #fff;
    color: #374151;
    /* odpowiada text-gray-700 */
    font-size: 0.875rem;
    /* text-sm */
    line-height: 1.25rem;
    /* leading-5 */
    text-decoration: none;
    transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

.pagination div>span {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.pagination div>span>span {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 15px;
    padding-right: 15px;
    height: 30px;
    margin-left: -1px;
    border: 1px solid #d1d5db;
    background-color: #fff;
    color: #374151;
    font-size: 0.875rem;
    line-height: 1.25rem;
    text-decoration: none;
    transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
    display: flex;
    align-items: center;

}

.pagination div>span>span>span {
    display: flex;
    align-items: center;
}

.pagination div {
    flex: 1;
}

/* Zaokrąglenie lewych i prawych rogów w grupie */
.pagination .rounded-l-md {
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}

.pagination .rounded-r-md {
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

/* Elementy wyłączone (disabled) */
.pagination .cursor-default {
    cursor: default;
    opacity: 0.6;
}

/* Efekt hover dla linków */
.pagination a:hover {
    background-color: #f3f4f6;
    /* lekkie szare tło */
    color: #1f2937;
    /* ciemniejszy tekst */
}

/* Efekt focus */
.pagination a:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.5);
    /* pierścień focus - light blue */
}

/* Stylizacja bieżącej strony - element posiadający atrybut aria-current */
.pagination [aria-current="page"]>span {

    color: #111827;
    /* text-gray-900 */
    cursor: default;
}

/* Stylizacja tekstu informacyjnego (np. "Showing 1 to 1 of 4 results") */
.pagination p {
    margin: 0;
    font-size: 0.875rem;
    color: #4b5563;
    /* text-gray-700 */
}

/* Stylizacja ikon SVG wewnątrz paginacji */
.pagination svg {
    width: 1.25rem;
    /* 20px */
    height: 1.25rem;
    fill: currentColor;
}

/* Plik: css/admin-table.css */

/* Ustawienia globalne dla tabeli */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    min-width: 600px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

/* Stylizacja nagłówka tabeli */
.admin-table thead tr {
    background-color: var(--accent-color);
    color: #ffffff;
    text-align: left;
    font-weight: bold;
}

/* Stylizacja komórek tabeli */
.admin-table th,
.admin-table td {
    padding: 12px 15px;
    border: 1px solid #dddddd;
}

/* Stylizacja wierszy tabeli */
.admin-table tbody tr {
    border-bottom: 1px solid #dddddd;
    transition: background-color 0.3s ease;
}

/* Wiersze parzyste - subtelne tło */
.admin-table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

/* Ostatni wiersz */
.admin-table tbody tr:last-of-type {
    border-bottom: 2px solid var(--accent-color)
}

/* Efekt hover dla wierszy tabeli */
.admin-table tbody tr:hover {
    background-color: #f1f1f1;
}

/* Stylizacja linków w tabeli */
.admin-table a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}
.admin-table .btn-secondary{
    color:white;
}
.admin-table a:hover {
    text-decoration: underline;
}

/* Stylizacja przycisków w formie linku */
.btn-link {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    text-decoration: underline;
    font: inherit;
    padding: 0;
}

.btn-link:hover {
    color: var(--accent-color)
}

/* Drobne ulepszenia dla obrazków w tabeli */
.admin-table img {
    border-radius: 4px;
    display: block;
    max-width: 100%;
    height: auto;
}


/* Stylizacja sekcji kategorii */
.category-wrapper {
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
}

.category-wrapper label {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.single-category-checkbox {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.single-category-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

.single-category-checkbox label {
    font-weight: 400;
    color: #555;
    font-size: 14px;
    margin: 0;
    cursor: pointer;
}

.single-category-checkbox input[type="checkbox"]:checked+label {
    color: black;
    font-weight: 500;
}

/* Efekt hover dla kategorii */
.single-category-checkbox:hover label {
    color: var(--accent-color);
    transition: color 0.2s ease;
}

.success-info {
    display: flex;
    padding: 10px;
    margin-bottom: 25px;
    color: var(--accent-color);
    background: white;
    border-radius: 4px;
    font-size: 12px;
    border: 1px solid var(--accent-color);
}

.search-input {
    padding: 10px 15px;
    background-color: #eeeeee;
    color: black;
    border: 0px;
    border-radius: 4px;
}

.remove-size-btn {
    border: 1px solid var(--accent-color);
    background-color: white;
    color: black;
}

.size-row {
    margin-bottom: 10px;
}

/* Filtry w widoku listy ogłoszeń */
.filters {
    margin-bottom: 15px;
}

.filters a {
    margin-right: 8px;
    color: var(--accent-color);
    text-decoration: none;
}

.filters a:hover {
    text-decoration: underline;
}

.filters form {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filters select,
.filters input[type="text"] {
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.filters button {
    padding: 6px 12px;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.filters button:hover {
    background-color: var(--accent-color-dark);
}



#kickdb-search {
    margin-top: 25px;
}

#kickdb-results {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    list-style: none;
}

#kickdb-results li {
    font-size: 12px;
}