/* Dashboard Custom Styles */

:root {
    --shapers-primary: #f5e753;
    --shapers-secondary: #2c3e50;
    --shapers-success: #27ae60;
    --shapers-danger: #e74c3c;
    --shapers-warning: #f39c12;
    --shapers-info: #3498db;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    padding-top: 0;
}

.main-content {
    min-height: calc(100vh - 70px);
    padding: 2rem 1rem;
    margin-top: 90px;
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--shapers-primary) !important;
}

.navbar-nav .nav-link.active {
    color: var(--shapers-primary) !important;
    font-weight: 600;
}

/* Cards */
.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 2rem 0 rgba(58, 59, 69, 0.2);
}

.card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
}

/* Stats Cards */
.border-left-primary {
    border-left: 0.25rem solid var(--shapers-info) !important;
}

.border-left-success {
    border-left: 0.25rem solid var(--shapers-success) !important;
}

.border-left-info {
    border-left: 0.25rem solid var(--shapers-primary) !important;
}

.border-left-warning {
    border-left: 0.25rem solid var(--shapers-warning) !important;
}

.text-primary {
    color: var(--shapers-info) !important;
}

.text-success {
    color: var(--shapers-success) !important;
}

.text-warning {
    color: var(--shapers-warning) !important;
}

.btn-primary {
    background-color: var(--shapers-info);
    border-color: var(--shapers-info);
}

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

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

.btn-success:hover {
    background-color: #219a52;
    border-color: #219a52;
}

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

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

/* Tables */
.table {
    background-color: white;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: var(--shapers-secondary);
    background-color: #f8f9fc;
}

.table-hover tbody tr:hover {
    background-color: rgba(245, 231, 83, 0.1);
}

/* Badges */
.badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
}

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

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

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

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

/* Forms */
.form-control:focus {
    border-color: var(--shapers-primary);
    box-shadow: 0 0 0 0.2rem rgba(245, 231, 83, 0.25);
}

.form-select:focus {
    border-color: var(--shapers-primary);
    box-shadow: 0 0 0 0.2rem rgba(245, 231, 83, 0.25);
}

/* Alerts */
.alert {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.alert-success {
    background-color: rgba(39, 174, 96, 0.1);
    border-left: 4px solid var(--shapers-success);
    color: var(--shapers-success);
}

.alert-danger {
    background-color: rgba(231, 76, 60, 0.1);
    border-left: 4px solid var(--shapers-danger);
    color: var(--shapers-danger);
}

.alert-warning {
    background-color: rgba(243, 156, 18, 0.1);
    border-left: 4px solid var(--shapers-warning);
    color: var(--shapers-warning);
}

.alert-info {
    background-color: rgba(52, 152, 219, 0.1);
    border-left: 4px solid var(--shapers-info);
    color: var(--shapers-info);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .main-content {
        padding: 1rem 0.5rem;
        margin-top: 75px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    .h5 {
        font-size: 1.1rem;
    }
}

/* List Groups */
.list-group-item {
    border: none;
    border-bottom: 1px solid #e3e6f0;
    padding: 1rem;
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item-action:hover {
    background-color: rgba(245, 231, 83, 0.1);
}

/* Charts */
canvas {
    max-height: 300px;
}

/* Custom Utilities */
.text-gray-800 {
    color: var(--shapers-secondary) !important;
}

.text-gray-300 {
    color: #d1d3e2 !important;
}

.font-weight-bold {
    font-weight: 700 !important;
}

.text-xs {
    font-size: 0.7rem;
}

.text-uppercase {
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

/* Modal Customizations */
.modal-header {
    background-color: var(--shapers-info);
    color: white;
    border-bottom: none;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-footer {
    border-top: 1px solid #e3e6f0;
}

/* Progress Bars */
.progress {
    height: 0.75rem;
    border-radius: 0.375rem;
}

.progress-bar {
    background-color: var(--shapers-success);
}