.dashboard {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 0;
    min-height: 100vh;
    background: #e7f5ff;
}

.dashboard-sidebar {
    background: #339af0;
    color: white;
    padding: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 900;
}

.dashboard-content {
    display: flex;
    flex-direction: column;
}

.dashboard-header {
    background: white;
    border-bottom: 2px solid #339af0;
    padding: 15px 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.dashboard-main {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.dashboard-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.dashboard-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #000000;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-title i {
    color: #339af0;
}

.dashboard-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #666666;
    margin: 0;
}

.dashboard-breadcrumb a {
    color: #339af0;
    text-decoration: none;
    transition: color 0.3s;
}

.dashboard-breadcrumb a:hover {
    color: #228be6;
    text-decoration: underline;
}

.dashboard-breadcrumb-separator {
    color: #cccccc;
}

.dashboard-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dashboard-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 2px solid #339af0;
    border-radius: 25px;
    padding: 8px 15px;
    transition: all 0.3s;
}

.dashboard-search:focus-within {
    box-shadow: 0 2px 8px rgba(51, 154, 240, 0.2);
}

.dashboard-search input {
    background: none;
    border: none;
    outline: none;
    font-size: 0.9rem;
    min-width: 200px;
    color: #000000;
}

.dashboard-search input::placeholder {
    color: #666666;
}

.dashboard-search i {
    color: #666666;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.sidebar-logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    color: white;
}

.sidebar-logo i {
    font-size: 2rem;
}

.sidebar-subtitle {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-nav {
    list-style: none;
    margin: 0;
    padding: 20px 0;
}

.sidebar-nav-item {
    margin: 0;
    position: relative;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.sidebar-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: white;
    transform: scaleY(0);
    transition: transform 0.3s;
}

.sidebar-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-nav-link:hover::before {
    transform: scaleY(1);
}

.sidebar-nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    font-weight: 600;
}

.sidebar-nav-link.active::before {
    transform: scaleY(1);
}

.sidebar-nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.sidebar-nav-link span {
    flex: 1;
    font-size: 0.95rem;
}

.sidebar-nav-link .badge {
    background: #ff6b6b;
    color: white;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 2px solid white;
}

.sidebar-divider {
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 10px 20px;
}

.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.1);
}

.user-profile-sidebar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-decoration: none;
    color: white;
    transition: all 0.3s;
}

.user-profile-sidebar:hover {
    background: rgba(255, 255, 255, 0.2);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    overflow: hidden;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 0.75rem;
    opacity: 0.7;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logout-btn-sidebar {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.logout-btn-sidebar:hover {
    background: #ff6b6b;
    border-color: #ff6b6b;
    transform: rotate(90deg);
}

.dashboard-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    border: 2px solid #339af0;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #339af0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.dashboard-card:hover::before {
    transform: scaleX(1);
}

.dashboard-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #339af0;
}

.dashboard-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000000;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-card-title i {
    color: #339af0;
}

.dashboard-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: #e7f5ff;
    color: #339af0;
    border: 2px solid #339af0;
}

.dashboard-card-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000;
    margin: 10px 0;
}

.dashboard-card-subtitle {
    font-size: 0.9rem;
    color: #666666;
    margin: 0;
}

.dashboard-card-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #339af0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #666666;
}

.dashboard-card-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #339af0;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.dashboard-card-action:hover {
    gap: 8px;
    color: #228be6;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.dashboard-grid.double {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.dashboard-grid.triple {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.dashboard-grid.full {
    grid-template-columns: 1fr;
}

.dashboard-grid-item {
    grid-column: span 1;
}

.dashboard-grid-item.span-2 {
    grid-column: span 2;
}

.dashboard-grid-item.span-3 {
    grid-column: span 3;
}

.dashboard-widget {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 2px solid #339af0;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #339af0;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #000000;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-title i {
    color: #339af0;
}

.widget-menu {
    display: flex;
    gap: 5px;
}

.widget-menu-btn {
    background: none;
    border: 2px solid #339af0;
    color: #339af0;
    cursor: pointer;
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.widget-menu-btn:hover {
    background: #339af0;
    color: white;
}

.widget-body {
    margin: 0;
}

.widget-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget-list-item {
    padding: 12px 0;
    border-bottom: 2px solid #339af0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget-list-item-title {
    flex: 1;
    font-weight: 500;
    color: #000000;
    margin: 0;
}

.widget-list-item-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #339af0;
}

.dashboard-section {
    margin-bottom: 30px;
}

.dashboard-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #339af0;
}

.dashboard-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-section-title i {
    color: #339af0;
}

.dashboard-section-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: #339af0;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.dashboard-section-action:hover {
    background: #228be6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(51, 154, 240, 0.3);
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 2px solid #339af0;
}

.dashboard-table thead {
    background: #339af0;
    color: white;
}

.dashboard-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.dashboard-table tbody tr {
    border-bottom: 2px solid #e7f5ff;
    transition: background-color 0.3s;
}

.dashboard-table tbody tr:hover {
    background-color: #e7f5ff;
}

.dashboard-table td {
    padding: 15px;
    color: #000000;
}

.dashboard-table-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: #339af0;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.dashboard-table-action:hover {
    background: #228be6;
    transform: translateY(-1px);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s;
    border: 2px solid #339af0;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.stat-box-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #339af0;
}

.stat-box-number {
    font-size: 2rem;
    font-weight: 700;
    color: #000000;
    margin: 10px 0;
}

.stat-box-label {
    font-size: 0.9rem;
    color: #666666;
    font-weight: 500;
}

.stat-box-change {
    font-size: 0.85rem;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid #339af0;
}

.stat-box-change.positive {
    color: #339af0;
}

.stat-box-change.negative {
    color: #1976d2;
}

@media (max-width: 1200px) {
    .dashboard {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        position: fixed;
        left: -250px;
        top: 0;
        height: 100vh;
        z-index: 999;
        transition: left 0.3s;
    }

    .dashboard.sidebar-open .dashboard-sidebar {
        left: 0;
    }

    .dashboard-grid.double {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .dashboard-grid-item.span-2 {
        grid-column: span 1;
    }

    .dashboard-grid-item.span-3 {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .dashboard-header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .dashboard-actions {
        width: 100%;
        flex-direction: column;
    }

    .dashboard-search {
        width: 100%;
    }

    .dashboard-search input {
        min-width: 0;
        flex: 1;
    }

    .dashboard-main {
        padding: 20px;
    }

    .dashboard-grid {
        gap: 15px;
        margin-bottom: 20px;
    }

    .dashboard-grid,
    .dashboard-grid.double,
    .dashboard-grid.triple {
        grid-template-columns: 1fr;
    }

    .stats-row {
        gap: 15px;
        margin-bottom: 20px;
    }

    .stats-row {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .dashboard-card {
        padding: 20px;
    }

    .dashboard-card-value {
        font-size: 2rem;
    }

    .dashboard-widget {
        padding: 20px;
    }

    .dashboard-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .dashboard-section-action {
        width: 100%;
        justify-content: center;
    }

    .widget-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .dashboard-header {
        padding: 12px 15px;
    }

    .dashboard-title {
        font-size: 1.3rem;
    }

    .dashboard-main {
        padding: 15px;
    }

    .dashboard-card {
        padding: 15px;
    }

    .dashboard-card-value {
        font-size: 1.8rem;
    }

    .stat-box-number {
        font-size: 1.5rem;
    }

    .dashboard-table th,
    .dashboard-table td {
        padding: 10px;
        font-size: 0.85rem;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }
}

.dashboard-hidden {
    display: none !important;
}

.dashboard-visible {
    display: block !important;
}

.dashboard-full-width {
    grid-column: 1 / -1;
}

.dashboard-margin {
    margin-bottom: 30px;
}

.dashboard-margin-small {
    margin-bottom: 15px;
}

.dashboard-padding {
    padding: 25px;
}

.dashboard-padding-small {
    padding: 15px;
}

.dashboard-text-center {
    text-align: center;
}

.dashboard-text-right {
    text-align: right;
}

.dashboard-text-muted {
    color: #666666;
}

.dashboard-text-success {
    color: #339af0;
}

.dashboard-text-warning {
    color: #1976d2;
}

.dashboard-text-danger {
    color: #0d47a1;
}

.dashboard-text-info {
    color: #339af0;
}

@media print {
    .dashboard-sidebar,
    .dashboard-header,
    .widget-menu,
    .dashboard-search {
        display: none;
    }

    .dashboard {
        grid-template-columns: 1fr;
    }

    .dashboard-card,
    .dashboard-widget {
        page-break-inside: avoid;
        box-shadow: none;
        border: 2px solid #000000;
    }

    .dashboard-main {
        padding: 0;
    }
}