/* admin/css/style.css */

/* --- Global & Typography --- */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #f3f4f6; /* Tailwind gray-100 */
}

/* --- Custom Scrollbar for Sidebar --- */
.custom-scrollbar::-webkit-scrollbar {
    width: 5px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: #1e293b; /* slate-800 */
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #475569; /* slate-600 */
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #64748b; /* slate-500 */
}

/* --- Mini Sidebar Logic (Desktop Only) --- */
@media (min-width: 1024px) {
    /* বডি তে যখন mini-sidebar ক্লাস থাকবে */
    body.mini-sidebar #sidebar {
        width: 5rem; /* w-20 equivalent */
    }

    body.mini-sidebar .sidebar-text {
        display: none; /* টেক্সট লুকানো */
    }

    body.mini-sidebar .logo-full {
        display: none;
    }

    body.mini-sidebar .logo-mini {
        display: block !important;
    }

    /* হোভার ইফেক্ট মিনি সাইডবারে */
    body.mini-sidebar #sidebar nav a {
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }
    
    body.mini-sidebar #sidebar nav a i {
        margin-right: 0;
        font-size: 1.25rem;
    }
}

/* --- Common Card Style --- */
.card {
    background: #ffffff;
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb; /* gray-200 */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* --- Custom Table Style --- */
.table-container {
    overflow-x: auto;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    text-align: left;
}

.custom-table th {
    background-color: #f8fafc; /* slate-50 */
    color: #475569; /* slate-600 */
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.custom-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    color: #334155; /* slate-700 */
    font-size: 0.95rem;
}

.custom-table tr:hover {
    background-color: #f1f5f9; /* slate-100 */
}

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

/* --- Form Styles --- */
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151; /* gray-700 */
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #1f2937;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #d1d5db; /* gray-300 */
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6; /* blue-500 */
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.2s;
    cursor: pointer;
    gap: 0.5rem;
}

.btn-primary {
    background-color: #2563eb; /* blue-600 */
    color: white;
}
.btn-primary:hover { background-color: #1d4ed8; }

.btn-danger {
    background-color: #ef4444; /* red-500 */
    color: white;
}
.btn-danger:hover { background-color: #dc2626; }

.btn-success {
    background-color: #10b981; /* emerald-500 */
    color: white;
}
.btn-success:hover { background-color: #059669; }

/* Status Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
}
.badge-pending { background-color: #fef3c7; color: #92400e; }
.badge-success { background-color: #d1fae5; color: #065f46; }
.badge-danger { background-color: #fee2e2; color: #991b1b; }