/* DPCRM Theme for DPCASH2
 * This stylesheet implements the DPCRM visual style for DPCASH2
 */

/* Navigation Bar Styling */
.navbar {
    background-color: #2c3e50;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 600;
    color: #ecf0f1;
}

.user-info {
    color: #ecf0f1;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.user-info span {
    margin-right: 10px;
}

/* Burger Menu and Sidebar */
.burger-menu {
    cursor: pointer;
    padding: 10px;
    font-size: 22px;
    color: #ecf0f1;
    transition: color 0.3s;
}

.burger-menu:hover {
    color: #3498db;
}

.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1050;
    top: 0;
    left: 0;
    background-color: #2c3e50;
    overflow-x: hidden;
    transition: 0.3s;
    padding-top: 60px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
}

.sidebar a {
    padding: 12px 15px 12px 25px;
    text-decoration: none;
    font-size: 16px;
    color: #ecf0f1;
    display: block;
    transition: 0.2s;
    border-left: 3px solid transparent;
}

.sidebar a:hover {
    color: #3498db;
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 3px solid #3498db;
}

.sidebar a.active {
    border-left: 3px solid #3498db;
    background-color: rgba(52, 152, 219, 0.1);
}

.sidebar .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    margin-left: 50px;
}

/* Card Styling */
.card {
    border-radius: 6px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 20px;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

/* Table Styling */
.table {
    margin-bottom: 0;
}

.table-condensed tr th,
.table-condensed tr td {
    padding: 0.5rem;
}

.table thead th {
    border-bottom: 2px solid #dee2e6;
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

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

/* Table Filter */
.table-filter {
    margin-bottom: 15px;
}

.table-filter input {
    border-radius: 4px;
    border: 1px solid #ced4da;
    padding: 8px 12px;
    font-size: 14px;
}

/* Buttons */
.btn-primary {
    background-color: #3498db;
    border-color: #3498db;
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.btn-outline-primary {
    color: #3498db;
    border-color: #3498db;
}

.btn-outline-primary:hover {
    background-color: #3498db;
    border-color: #3498db;
}

/* Main content area */
.main-content {
    transition: margin-left .3s;
    padding: 20px;
}

/* Page title */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        padding-top: 50px;
    }

    .sidebar a {
        font-size: 15px;
        padding: 10px 15px 10px 20px;
    }
}
