/* public/css/app-custom.css */

/* --- Card & Page Header --- */
.page-header-title {
    font-weight: 600;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.custom-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    background: #ffffff;
    transition: all 0.3s ease;
}

/* --- DataTables Custom Styling --- */
.table-responsive {
    border-radius: 0.75rem;
    overflow: hidden;
}

.table-custom {
    border-collapse: separate !important;
    border-spacing: 0;
    width: 100% !important;
    border: none !important;
}

.table-custom thead th {
    background-color: #f8fafc !important;
    color: #475569 !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 1rem 1.25rem !important;
    border-bottom: 2px solid #e2e8f0 !important;
    border-top: none !important;
}

.table-custom tbody td {
    padding: 1rem 1.25rem !important;
    color: #334155;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9 !important;
    border-top: none !important;
}

.table-custom tbody tr:hover {
    background-color: #f8fafc !important;
}

/* --- Badges --- */
.badge-soft-success {
    background-color: #dcfce7;
    color: #15803d;
    font-weight: 600;
    padding: 0.35em 0.75em;
    border-radius: 0.5rem;
}

.badge-soft-secondary {
    background-color: #f1f5f9;
    color: #64748b;
    font-weight: 600;
    padding: 0.35em 0.75em;
    border-radius: 0.5rem;
}

/* --- Action Buttons --- */
.action-group {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.btn-action {
    height: 34px;
    padding: 0 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border-radius: 0.5rem;
    border: none;
    transition: all 0.2s ease;
    font-size: 0.825rem;
    font-weight: 600;
}

.btn-action-icon-only {
    width: 34px;
    padding: 0;
}

.btn-action-edit {
    background-color: #fefce8;
    color: #ca8a04;
}

.btn-action-edit:hover {
    background-color: #ca8a04;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-action-delete {
    background-color: #fef2f2;
    color: #dc2626;
}

.btn-action-delete:hover {
    background-color: #dc2626;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-action-unlock {
    background-color: #f0fdf4;
    color: #16a34a;
}

.btn-action-unlock:hover {
    background-color: #16a34a;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-action-check {
    background-color: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-action-check:hover {
    background-color: #475569;
    color: #ffffff;
    border-color: #475569;
    transform: translateY(-2px);
}

/* --- Top Header Buttons --- */
.btn-primary-custom {
    background: #2563eb;
    border: none;
    color: #ffffff;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary-custom:hover {
    background: #1d4ed8;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.btn-outline-custom {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    color: #475569;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 0.75rem;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-outline-custom:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

/* --- Custom Modals & Inputs --- */
.custom-modal-content {
    border-radius: 1.25rem !important;
    overflow: hidden;
}

.custom-input {
    border-radius: 0.6rem !important;
    border: 1.5px solid #e2e8f0 !important;
    padding: 0.6rem 0.85rem !important;
    font-size: 0.875rem !important;
    transition: all 0.2s ease-in-out !important;
    background-color: #f8fafc !important;
}

.custom-input:focus {
    border-color: #2563eb !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1) !important;
    outline: none !important;
}

.btn-light-custom {
    background-color: #f1f5f9;
    color: #475569;
    font-weight: 600;
    border-radius: 0.6rem;
    border: none;
    padding: 0.6rem 1.25rem;
    transition: all 0.2s ease;
}

.btn-light-custom:hover {
    background-color: #e2e8f0;
    color: #0f172a;
}

/* --- Third Party Adjustments --- */
.swal2-popup {
    font-family: 'Fredoka', sans-serif !important;
    border-radius: 1rem !important;
}