/* ============================================================ */
/* STYLE.CSS - Global Styles for MukhlisBirdShop */
/* ============================================================ */

:root {
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 70px;
    --navbar-height: 60px;
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --success: #2ec4b6;
    --warning: #ff9f1c;
    --danger: #e71d36;
    --bg: #f5f7fa;
    --card-bg: #ffffff;
    --text: #2b2d42;
    --text-muted: #8d99ae;
    --border: #edf2f7;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Content Wrapper */
.main-content {
    margin-left: var(--sidebar-width);
    padding-top: var(--navbar-height);
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        padding-top: 70px;
    }
}

/* Cards */
.card {
    border-radius: var(--radius);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

/* Stat Cards */
.stat-card {
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn {
    border-radius: 8px;
    font-weight: 500;
}

/* Forms */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid var(--border);
    padding: 10px 14px;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.form-label {
    font-size: 0.875rem;
    color: var(--text);
    margin-bottom: 0.35rem;
}

/* Tables */
.table {
    font-size: 0.9rem;
}

.table thead th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom-width: 1px;
}

.table-hover tbody tr:hover {
    background: rgba(67, 97, 238, 0.04);
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
}

/* Alerts */
.alert {
    border-radius: var(--radius);
    border: none;
}

/* Hr */
hr {
    border-color: var(--border);
    opacity: 0.8;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.card, .stat-card {
    animation: fadeIn 0.4s ease;
}
