﻿* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: #f6f8fb;
    color: #333;
}

.admin-header {
    background-color: #ffffff;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}

.admin-header h1 {
    font-size: 20px;
    font-weight: 600;
}

.admin-container {
    display: flex;
}

.admin-sidebar {
    width: 240px;
    background-color: #ffffff;
    padding: 30px 20px;
    border-right: 1px solid #e0e0e0;
    min-height: 100vh;
}

.admin-sidebar h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #555;
}

.admin-sidebar ul {
    list-style: none;
    padding: 0;
}

.admin-sidebar li {
    padding: 10px 16px;
    margin-bottom: 12px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    color: #333;
    transition: all 0.2s ease;
}

.admin-sidebar li:hover,
.admin-sidebar li.active {
    background-color: #d9effa;
    color: #1485ba;
    font-weight: 500;
}

.admin-content {
    flex: 1;
    padding: 30px;
}

.admin-panel {
    display: none;
}

.admin-panel.active {
    display: block;
}

.panel-section {
    background: #ffffff;
    padding: 25px;
    border-radius: 14px;
   /* box-shadow: 0 1px 4px rgba(0,0,0,0.04);*/
   /* border: 1px solid #e3e7ed;*/
}

.panel-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #222;
    text-align:center;
}

input, select, button {
    padding: 12px 14px;
    margin: 10px 0 18px 0;
    width: 100%;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    outline: none;
    transition: border 0.2s;
}

input:focus, select:focus, textarea:focus {
    border-color: #1485ba !important;
}

button {
    background-color: #1485ba;
    border-radius: 8px!important;
    color: white;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #1bb1f8;
}

.form-row {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.form-control {
    flex: 1;
    display: flex;
    flex-direction: column;
    border:none !important;
}

.additionalDetails {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
    display: flex;
    width: 100%;
}

.table-responsive {
 /*   overflow-x: auto;*/
    margin-top: 20px;
    background: #fff;
    /*border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    border: 1px solid #e3e7ed;*/
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: auto;
}

.admin-table th, .admin-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #444;
}

.admin-table th {
    background-color: #f9fafb;
    border-radius: 8px !important;
    color: #333;
    font-weight: 600;
}

.action-icon {
    cursor: pointer;
    font-size: 16px;
    margin-right: 8px;
    transition: color 0.2s;
}

.action-icon.edit:hover {
    color: #1485ba;
}

.action-icon.delete:hover {
    color: red;
}

#modal-delete-description {
    font-size:15px;
}

/* Mobile Responsive Styles */
@media (max-width: 992px) {
    .admin-container {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        min-height: auto;
    }

    .admin-sidebar ul {
        display: flex;
        overflow-x: auto;
        gap: 10px;
    }

    .admin-sidebar li {
        white-space: nowrap;
        padding: 10px 20px;
        margin-bottom: 0;
    }

    .admin-content {
        padding: 20px;
    }

    .form-row {
        flex-direction: column;
    }

    .admin-table {
        min-width: auto;
    }

    .table-responsive {
        border-radius: 0;
    }

    .panel-section {
        padding: 16px;
    }
}

/* Extra Small Devices */
@media (max-width: 576px) {
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .admin-header h1 {
        font-size: 18px;
    }

    .admin-sidebar h3 {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .panel-section h2 {
        font-size: 16px;
    }

    input, select, button, textarea {
        font-size: 13px;
        padding: 10px 12px;
    }
}


/* Hide table headers on small screens */
@media (max-width: 768px) {
    .admin-table thead {
        display: none;
    }

    .admin-table, .admin-table tbody, .admin-table tr, .admin-table td {
        display: block;
        width: 100%;
    }

    .admin-table tr {
        margin-bottom: 15px;
        background: #fff;
        padding: 12px;
        border: 1px solid #e3e7ed;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    }

    .admin-table td {
        position: relative;
        padding-left: 50%;
        text-align: left;
        border: none;
        border-bottom: 1px solid #f0f0f0;
        font-size: 14px;
    }

    .admin-table td:last-child {
        border-bottom: none;
    }

    .admin-table td::before {
        position: absolute;
        top: 12px;
        left: 16px;
        width: 45%;
        white-space: nowrap;
        font-weight: 600;
        color: #333;
        content: attr(data-label);
    }

    .action-icon {
        font-size: 18px;
    }
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.pagination-wrapper button {
    padding: 8px 16px;
    background-color: #1485ba;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.pagination-wrapper button:hover {
    background-color: #1bb1f8;
}

.pagination-wrapper span {
    font-weight: 500;
    font-size: 14px;
    color: #333;
}

.fa:hover{
    color:blue;
    cursor:pointer;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    display: none;
}

#hidden-visibility{
    display:none;
}



input.error, select.error, textarea.error {
    border: 1px solid #e74c3c;
    background-color: #fdecea;
}

/* Style for the validation message */
.text-danger {
    color: #e74c3c;
    font-size: 0.9em;
    margin-top: 4px;
    display: block;
}

.pagination {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 20px;
}

.pagination button {
    width: auto;
    padding: 8px 14px;
    background-color: #1485ba;
    color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.pagination button:hover {
    background-color: #1bb1f8;
    border-color: #999;
}

.pagination button.active {
    background-color: #1bb1f8;
    color: #fff;
    border-color: #007bff;
}

.pagination button.disabled {
    background-color: #f9f9f9;
    color: #999;
    border-color: #ddd;
    cursor: not-allowed;
    pointer-events: none;
}

th {
    cursor: pointer;
}

th.sortable:after {
    content: '\f0dc';
    font-family: 'FontAwesome';
    padding-left: 5px;
}

th.sorted-asc:after {
    content: '\f0de';
}

th.sorted-desc:after {
    content: '\f0dd';
}

.info{
    font-size:14px;
}

.searchFilter {
    float: right;
    margin-bottom: 15px;
    padding: 8px;
    width: 20%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .admin-table td {
        word-wrap:break-word;
        position: relative;
        padding-left: 65%;
        text-align: left;
        border: none;
        border-bottom: 1px solid #f0f0f0;
        font-size: 14px;
    }
}

@media (max-width: 1024px) {
    .admin-table td {
        word-wrap: break-word;
        position: relative;
        /*padding-left: 65%;
        text-align: left;
        border: none;
        border-bottom: 1px solid #f0f0f0;
        font-size: 14px;*/
    }
   /* #users {
        width: 90%;
        display: block;
    }*/
}