/* ====== General Reset & Font ====== */
body, input, button, select, textarea {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 400;
    color: #333333;
    line-height: 1.6;
}

/* ====== Card Styling (Modern & Clean) ====== */
.card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.4s ease;
    margin-bottom: 2rem;
    overflow: hidden;
    border: none;
}

.card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.card-body {
    padding: 2.5rem 3rem;
}

/* ====== Page Title & Breadcrumb ====== */
.pagetitle {
    margin-bottom: 1.5rem;
}

.pagetitle h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1c1c1c;
    margin-bottom: 0.3rem;
    letter-spacing: 0.02em;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0;
    font-weight: 500;
    font-size: 1rem;
    color: #777;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    padding: 0 0.5rem;
    color: #aaa;
}

.breadcrumb-item a {
    color: #0d6efd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #0a58ca;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #555;
}

/* ====== Table Styling - Clean & Interactive ====== */
table.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 15px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 14px;
}

table.table thead tr {
    background: #f7f9fc;
    box-shadow: inset 0 -2px 0 #ddd;
    border-radius: 14px 14px 0 0;
}

table.table thead th {
    padding: 1rem 1.2rem;
    color: #555;
    text-align: left;
    font-weight: 700;
    user-select: none;
    letter-spacing: 0.02em;
}

table.table tbody tr {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(60, 64, 67, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: default;
}

table.table tbody tr:hover {
    box-shadow: 0 12px 28px rgba(60, 64, 67, 0.16);
    transform: scale(1.01);
    cursor: pointer;
}

table.table tbody tr td {
    padding: 1rem 1.2rem;
    vertical-align: middle;
    color: #333;
    border-top: none;
}

table.table tbody tr td img {
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* ====== Responsive Table Scroll ====== */
@media (max-width: 992px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ====== Search Input Styling ====== */
input[type="search"] {
    width: 100%;
    max-width: 320px;
    padding: 0.65rem 1.2rem;
    font-size: 1rem;
    border: 2px solid #e1e4ea;
    border-radius: 30px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: none;
}

input[type="search"]:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 8px rgba(13, 110, 253, 0.3);
}

/* ====== Form Group & Label Styling ====== */
.form-group {
    margin-bottom: 1.8rem;
}

label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: #202020;
    letter-spacing: 0.02em;
}

input.form-control,
textarea.form-control,
select.form-select {
    width: 100%;
    padding: 0.75rem 1.2rem;
    font-size: 1rem;
    border: 2px solid #d1d9e6;
    border-radius: 12px;
    font-weight: 500;
    color: #454545;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fafbfc;
}

input.form-control:focus,
textarea.form-control:focus,
select.form-select:focus {
    border-color: #0d6efd;
    background-color: #ffffff;
    box-shadow: 0 0 12px rgba(13, 110, 253, 0.35);
    outline: none;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* ====== Validation Error - Alerts ====== */
.alert-warning {
    background-color: #fff4e5;
    border: 1px solid #ffac33;
    color: #7a5200;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 10px;
    padding: 0.5rem 1rem;
    margin-top: 0.4rem;
}

/* ====== Buttons Styling ====== */
.btn {
    border-radius: 30px;
    font-weight: 700;
    padding: 0.55rem 1.8rem;
    font-size: 1rem;
    letter-spacing: 0.03em;
    box-shadow: 0 3px 8px rgba(13, 110, 253, 0.24);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: #0d6efd;
    color: #fff;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #0b5ed7;
    box-shadow: 0 5px 15px rgba(11, 94, 215, 0.5);
    outline: none;
}

.btn-success {
    background-color: #198754;
    color: #fff;
}

.btn-success:hover, .btn-success:focus {
    background-color: #146c43;
    box-shadow: 0 5px 15px rgba(20, 108, 67, 0.5);
    outline: none;
}

.btn-danger {
    background-color: #dc3545;
    color: #fff;
}

.btn-danger:hover, .btn-danger:focus {
    background-color: #b02a37;
    box-shadow: 0 5px 15px rgba(176, 42, 55, 0.5);
    outline: none;
}

.btn-info {
    background-color: #0dcaf0;
    color: #fff;
}

.btn-info:hover, .btn-info:focus {
    background-color: #31d2f2;
    box-shadow: 0 5px 15px rgba(49, 210, 242, 0.5);
    outline: none;
}

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

.btn-secondary:hover, .btn-secondary:focus {
    background-color: #5a6268;
    box-shadow: 0 5px 15px rgba(90, 98, 104, 0.5);
    outline: none;
}

/* Button small size for action buttons */
.btn-sm {
    padding: 0.35rem 1rem;
    font-size: 0.85rem;
}

/* ====== Responsive Adjustments ====== */
@media (max-width: 768px) {
    .card-body {
        padding: 1.5rem;
    }
    table.table {
        font-size: 0.9rem;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    input[type="search"] {
        max-width: 100%;
    }
}

/* ====== Pagination Styling ====== */
.pagination {
    justify-content: center;
    padding: 1rem 0;
}

.pagination .page-item .page-link {
    border-radius: 12px;
    margin: 0 0.25rem;
    border: 1px solid #dee2e6;
    color: #0d6efd;
    font-weight: 600;
    padding: 0.5rem 0.9rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pagination .page-item .page-link:hover,
.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
    box-shadow: 0 0 10px rgba(13, 110, 253, 0.6);
}
