/* Panel Layout Custom Styles for MestoPivo Admin */

/* Override GXON styles to match MestoPivo branding */
:root {
    --panel-primary-color: #316AFF;
    --panel-success-color: #10b981;
    --panel-danger-color: #ef4444;
    --panel-warning-color: #f59e0b;
    --panel-info-color: #3b82f6;
}

/* Card hover effect */
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Avatar subtle backgrounds */
.bg-success-subtle {
    background-color: rgba(16, 185, 129, 0.1) !important;
}

.bg-warning-subtle {
    background-color: rgba(245, 158, 11, 0.1) !important;
}

.bg-danger-subtle {
    background-color: rgba(239, 68, 68, 0.1) !important;
}

.bg-primary-subtle {
    background-color: rgba(49, 106, 255, 0.1) !important;
}

.bg-info-subtle {
    background-color: rgba(59, 130, 246, 0.1) !important;
}

/* Text colors */
.text-success {
    color: var(--panel-success-color) !important;
}

.text-danger {
    color: var(--panel-danger-color) !important;
}

.text-warning {
    color: var(--panel-warning-color) !important;
}

.text-primary {
    color: var(--panel-primary-color) !important;
}

.text-info {
    color: var(--panel-info-color) !important;
}

/* Badge styles */
.badge-lg {
    padding: 0.35rem 0.65rem;
    font-size: 0.875rem;
}

/* Table row rounded */
.table-row-rounded tbody tr {
    transition: background-color 0.2s ease;
}

.table-row-rounded tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Button shadows */
.btn-shadow {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-shadow:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* White button */
.btn-white {
    background-color: #ffffff;
    border-color: #e5e7eb;
    color: #1e293b;
}

.btn-white:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
    color: #0f172a;
}

[data-bs-theme="dark"] .btn-white {
    background-color: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}

[data-bs-theme="dark"] .btn-white:hover {
    background-color: #334155;
    border-color: #475569;
    color: #ffffff;
}

/* Button icon */
.btn-icon {
    padding: 0.375rem 0.5rem;
    line-height: 1;
}

.btn-icon i {
    font-size: 1rem;
}

/* Waves effect customization */
.waves-effect {
    position: relative;
    overflow: hidden;
}

/* App page head */
.app-page-head {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.app-page-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1e293b;
}

[data-bs-theme="dark"] .app-page-title {
    color: #f1f5f9;
}

/* Breadcrumb styling */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: #64748b;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--panel-primary-color);
}

.breadcrumb-item.active {
    color: #94a3b8;
}

/* Table utilities */
.table-centered th,
.table-centered td {
    vertical-align: middle;
}

.table thead th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: #64748b;
}

.table-light {
    --bs-table-bg: #f8fafc;
}

[data-bs-theme="dark"] .table-light {
    --bs-table-bg: #1e293b;
}

/* Minimum widths */
.minw-50px { min-width: 50px; }
.minw-80px { min-width: 80px; }
.minw-100px { min-width: 100px; }
.minw-120px { min-width: 120px; }
.minw-150px { min-width: 150px; }
.minw-200px { min-width: 200px; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .app-page-title {
        font-size: 1.5rem;
    }

    .minw-200px,
    .minw-150px,
    .minw-100px,
    .minw-120px,
    .minw-80px,
    .minw-50px {
        min-width: auto !important;
    }

    .table-responsive {
        font-size: 0.875rem;
    }

    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* Dark mode adjustments */
[data-bs-theme="dark"] {
    .card-hover:hover {
        box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
    }

    .table-row-rounded tbody tr:hover {
        background-color: rgba(255, 255, 255, 0.02);
    }

    .app-page-head {
        border-bottom-color: rgba(255, 255, 255, 0.05);
    }
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

/* Avatar sizes */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
}

.avatar-sm {
    width: 2rem;
    height: 2rem;
    font-size: 0.875rem;
}

.avatar-md {
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
}

.avatar-lg {
    width: 4rem;
    height: 4rem;
    font-size: 1.5rem;
}

.avatar-title {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Form select customization */
.form-select-sm {
    padding: 0.375rem 2rem 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* Dropdown menu */
.dropdown-menu {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] .dropdown-menu {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Smooth transitions */
.card,
.btn,
.badge,
.dropdown-menu,
.table tbody tr {
    transition: all 0.2s ease;
}

/* Font size utilities */
.fs-22 {
    font-size: 1.375rem !important;
}

/* Flex utilities */
.flex-shrink-0 {
    flex-shrink: 0 !important;
}

/* Card header border */
.card-header.border-0 {
    border-bottom: 0 !important;
}

/* Scrollbar styling for modern browsers */
.simplebar-scrollbar::before {
    background-color: rgba(0, 0, 0, 0.2);
}

[data-bs-theme="dark"] .simplebar-scrollbar::before {
    background-color: rgba(255, 255, 255, 0.2);
}
