/* data_pop.css */

:root {
    --primary: #1ABB9C;
    --success: #26B99A;
    --info: #23C6C8;
    --warning: #F8AC59;
    --danger: #ED5565;
    --secondary: #73879C;
    --dark: #2A3F54;
    --light: #F7F7F7;
}

body {
    background-color: #F7F7F7;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    color: #73879C;
}

.main-content {
    padding: 20px;
    margin-left: 220px;
    min-height: calc(100vh - 52px);
    transition: margin-left 0.3s ease;
}

.sidebar-collapsed .main-content {
    margin-left: 60px;
}

@media (max-width: 992px) {
    .main-content {
        margin-left: 0;
        padding: 15px;
    }
    .sidebar-collapsed .main-content {
        margin-left: 0;
    }
}

.page-title h1 {
    font-size: 24px;
    color: var(--dark);
    margin: 0;
    font-weight: 400;
}

.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    background: white;
    border-radius: 5px;
}

.card-header {
    background-color: white;
    border-bottom: 1px solid #e9ecef;
    padding: 20px;
    border-radius: 5px 5px 0 0;
}

.card-header h5 {
    font-size: 16px;
    font-weight: 500;
    color: var(--dark);
    margin: 0;
}

.card-body {
    padding: 20px;
}

.alert {
    padding: 12px 20px;
    font-size: 14px;
    border: none;
    margin-bottom: 20px;
    border-radius: 5px;
}

.alert-danger {
    background-color: rgba(237, 85, 101, 0.1);
    color: var(--danger);
    border-left: 4px solid var(--danger);
}

.alert-success {
    background-color: rgba(38, 185, 154, 0.1);
    color: var(--success);
    border-left: 4px solid var(--success);
}

.btn {
    font-size: 14px;
    padding: 8px 16px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    text-decoration: none;
    border-radius: 3px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: #169F85;
    color: white;
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6c7d;
    color: white;
}

.btn-warning {
    background-color: var(--warning);
    color: white;
}

.btn-warning:hover {
    background-color: #e09b3d;
    color: white;
}

.btn-success {
    background-color: var(--success);
    color: white;
}

.btn-success:hover {
    background-color: #1e9a81;
    color: white;
}

.btn-danger {
    background-color: var(--danger);
    color: white;
}

.btn-danger:hover {
    background-color: #d63449;
    color: white;
}

.btn-group-sm .btn {
    padding: 6px 12px;
    font-size: 12px;
}

.table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 12px 8px;
    vertical-align: middle;
    border-top: 1px solid #dee2e6;
    font-size: 13px;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: var(--dark);
    font-size: 12px;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 3px;
}

/* Custom Bootstrap badge colors */
.bg-success {
    background-color: var(--success) !important;
}

.bg-danger {
    background-color: var(--danger) !important;
}

.bg-warning {
    background-color: var(--warning) !important;
    color: white !important;
}

.bg-info {
    background-color: var(--info) !important;
}

@media (max-width: 768px) {
    .btn-group {
        flex-direction: column;
        gap: 2px;
    }
    
    .btn-group-sm .btn {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .table th, .table td {
        padding: 8px 4px;
        font-size: 12px;
    }
}