/* Layout Styles */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

/* Sidebar Styles */
.site-menubar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 260px;
    background: #3f51b5;
    color: #fff;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.site-menubar-header {
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    background: rgba(0,0,0,.1);
    width: 100%;
}

.site-menubar-brand {
    display: flex;
    align-items: center;
    width: 100%;
}

.site-menubar-brand .logo {
    height: auto;
    max-height: 40px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.site-menubar-body {
    height: calc(100% - 60px);
    overflow-y: auto;
}

.site-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-menu-item {
    position: relative;
}

.site-menu-item a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: all 0.2s ease;
}

.site-menu-item a:hover {
    background: rgba(255,255,255,.1);
    color: #fff;
}

.site-menu-item a i {
    width: 20px;
    margin-right: 10px;
    font-size: 1.1em;
}

.site-menu-item.active > a {
    background: rgba(255,255,255,.1);
    color: #fff;
}

/* Submenu Styles */
.site-menu-item.has-sub > a {
    position: relative;
}

.site-menu-item.has-sub > a:after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.site-menu-item.has-sub.open > a:after {
    transform: translateY(-50%) rotate(180deg);
}

.site-menu-sub {
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(0,0,0,.1);
    display: none;
}

.site-menu-item.has-sub.open > .site-menu-sub {
    display: block;
}

.site-menu-sub .site-menu-item a {
    padding-left: 50px;
}

/* Content Area Styles */
#content {
    width: calc(100% - 260px);
    margin-left: 260px;
    min-height: 100vh;
    transition: all 0.3s ease;
    background: #f5f5f5;
}

/* Navbar Styles */
.navbar {
    background: #fff;
    padding: 0.5rem 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.menu-toggle {
    color: #3f51b5;
    font-size: 1.25rem;
    padding: 0.25rem 0.5rem;
    background: none;
    border: none;
    display: none;
}

/* Overlay for mobile menu */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.overlay.show {
    display: block;
}

/* Avatar Styles */
.avatar-wrapper {
    position: relative;
    display: inline-block;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #3f51b5;
}

.status-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #4CAF50;
    border: 2px solid #fff;
}

/* Dropdown Styles */
.dropdown-menu {
    background: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-radius: 4px;
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    color: #333;
    display: flex;
    align-items: center;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #3f51b5;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: #3f51b5;
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-top: 1px solid #eee;
}

/* Common Container Styles */
.content-container {
    padding-top: 80px;
    min-height: calc(100vh - 60px);
}

/* Card Styles */
.card {
    margin-top: 0;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: none;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0,0,0,.125);
    padding: 1rem;
}

.card-body {
    padding: 1.5rem;
}

/* Badge Styles */
.badge {
    font-size: 0.85em;
    padding: 0.5em 0.75em;
    font-weight: 500;
}

.badge-success {
    background-color: #28a745;
    color: #fff;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.badge-danger {
    background-color: #dc3545;
    color: #fff;
}

/* Button Styles */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    margin: 0 0.2rem;
    border-radius: 0.25rem;
}

.btn-action {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
    transition: all 0.2s ease;
}

.btn-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Table Styles */
.table {
    margin-bottom: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table th {
    background-color: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 1;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    padding: 1rem;
    white-space: nowrap;
}

.table td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #dee2e6;
    color: #212529;
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: rgba(0,0,0,.02);
}

.table-responsive {
    min-height: 400px;
    border-radius: 0.25rem;
    overflow: hidden;
}

/* Pagination Styles */
.pagination {
    margin-bottom: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.pagination > li {
    display: inline-block;
    margin: 2px;
}

.pagination > li > a,
.pagination > li > span {
    padding: 6px 12px;
    line-height: 1.42857143;
    color: #337ab7;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 32px;
    text-align: center;
    display: inline-block;
}

.pagination > li.active > span {
    background-color: #337ab7;
    border-color: #337ab7;
    color: #fff;
}

.pagination > li.disabled > span {
    color: #777;
    cursor: not-allowed;
    background-color: #fff;
    border-color: #ddd;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .site-menubar {
        transform: translateX(-100%);
    }

    .site-menubar.show {
        transform: translateX(0);
    }

    #content {
        width: 100%;
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .content-container {
        padding-top: 15px;
    }
    
    .table-responsive {
        min-height: 300px;
    }
    
    .card-body {
        padding: 1rem;
    }

    .table th,
    .table td {
        padding: 0.75rem;
    }

    .pagination {
        justify-content: center;
    }

    .pagination > li {
        margin: 1px;
    }

    .pagination > li > a,
    .pagination > li > span {
        padding: 4px 8px;
        font-size: 0.875rem;
        min-width: 28px;
    }

    /* Hide some page numbers on mobile */
    .pagination > li:not(.active):not(:first-child):not(:last-child):not(:nth-last-child(2)):not(:nth-child(2)) {
        display: none;
    }

    /* Show ellipsis */
    .pagination > li:not(.active):not(:first-child):not(:last-child):not(:nth-last-child(2)):not(:nth-child(2)):nth-child(3) {
        display: inline-block;
    }

    .pagination > li:not(.active):not(:first-child):not(:last-child):not(:nth-last-child(2)):not(:nth-child(2)):nth-child(3) > span {
        padding: 4px 8px;
    }

    /* Adjust table for mobile */
    .table {
        font-size: 0.875rem;
    }

    .btn-sm {
        padding: 0.2rem 0.4rem;
        font-size: 0.75rem;
    }

    .badge {
        font-size: 0.75em;
        padding: 0.4em 0.6em;
    }

    .avatar {
        width: 32px;
        height: 32px;
    }
} 