/* Main Layout Styles */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

.main {
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    transition: all 0.35s ease-in-out;
    background-color: #f8f9fa;
}

.content {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

/* Sidebar Styles */
.sidebar-wrapper {
    min-width: 250px;
    max-width: 250px;
    min-height: 100vh;
    transition: all 0.35s ease-in-out;
    background: #2a3042;
    color: #a6b0cf;
}

.sidebar-header {
    padding: 1.5rem 1.5rem 0.375rem;
    border-bottom: 1px solid rgba(166, 176, 207, 0.1);
}

.sidebar-header .logo a {
    color: #fff;
    font-weight: 600;
    font-size: 1.15rem;
    text-decoration: none;
}

.sidebar-menu {
    padding: 0.5rem 0;
    overflow-y: auto;
    height: calc(100vh - 70px);
}

.sidebar-menu .menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu .sidebar-item {
    position: relative;
}

.sidebar-menu .sidebar-item .sidebar-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #a6b0cf;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.sidebar-menu .sidebar-item .sidebar-link:hover,
.sidebar-menu .sidebar-item .sidebar-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-menu .sidebar-item .sidebar-link i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.sidebar-menu .sidebar-title {
    padding: 0.75rem 1.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #a6b0cf;
    font-weight: 600;
}

.sidebar-menu .submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.2);
    display: none;
}

.sidebar-menu .submenu .submenu-item {
    padding: 0.5rem 1.5rem 0.5rem 3rem;
}

.sidebar-menu .submenu .submenu-item a {
    display: block;
    color: #a6b0cf;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s;
}

.sidebar-menu .submenu .submenu-item a:hover,
.sidebar-menu .submenu .submenu-item a.active {
    color: #fff;
}

.sidebar-menu .has-sub .sidebar-link::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    float: right;
    transition: transform 0.3s;
}

.sidebar-menu .has-sub.active .sidebar-link::after {
    transform: rotate(-180deg);
}

/* Header Styles */
.navbar-top {
    height: 70px;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    background: #fff;
}

.navbar-top .burger-btn {
    width: 30px;
    height: 30px;
    color: #d1d3e2;
    cursor: pointer;
}

.navbar-top .navbar-nav .nav-item .nav-link {
    color: #d1d3e2;
}

.navbar-top .navbar-nav .nav-item .nav-link:hover {
    color: #b7b9cc;
}

.navbar-top .navbar-nav .nav-item .dropdown-menu {
    position: absolute;
}

/* Card Styles */
.card {
    border: none;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
}

.card-body {
    padding: 1.5rem;
}

/* Table Styles */
.table {
    width: 100%;
    margin-bottom: 1rem;
    color: #858796;
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #e3e6f0;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: #4e73df;
}

.table td, .table th {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid #e3e6f0;
}

/* Badge Styles */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
}

/* Form Styles */
.form-control {
    display: block;
    width: 100%;
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #6e707e;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #d1d3e2;
    border-radius: 0.35rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: #6e707e;
    background-color: #fff;
    border-color: #bac8f3;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

/* Button Styles */
.btn {
    display: inline-block;
    font-weight: 400;
    color: #858796;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.35rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, 
                border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-primary {
    color: #fff;
    background-color: #4e73df;
    border-color: #4e73df;
}

.btn-primary:hover {
    color: #fff;
    background-color: #2e59d9;
    border-color: #2653d4;
}

.btn-secondary {
    color: #fff;
    background-color: #858796;
    border-color: #858796;
}

.btn-secondary:hover {
    color: #fff;
    background-color: #717384;
    border-color: #6b6d7d;
}

.btn-success {
    color: #fff;
    background-color: #1cc88a;
    border-color: #1cc88a;
}

.btn-success:hover {
    color: #fff;
    background-color: #17a673;
    border-color: #169b6b;
}

.btn-info {
    color: #fff;
    background-color: #36b9cc;
    border-color: #36b9cc;
}

.btn-info:hover {
    color: #fff;
    background-color: #2c9faf;
    border-color: #2a96a5;
}

.btn-warning {
    color: #fff;
    background-color: #f6c23e;
    border-color: #f6c23e;
}

.btn-warning:hover {
    color: #fff;
    background-color: #f4b619;
    border-color: #f4b30d;
}

.btn-danger {
    color: #fff;
    background-color: #e74a3b;
    border-color: #e74a3b;
}

.btn-danger:hover {
    color: #fff;
    background-color: #e02d1b;
    border-color: #d52a1a;
}

/* Avatar Styles */
.avatar-sm {
    width: 2.5rem;
    height: 2.5rem;
}

.avatar-title {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #fff;
    background-color: #d1d3e2;
    font-size: 1rem;
}

/* Page Title Styles */
.page-title-box {
    padding: 20px 0;
}

.page-title-box .page-title {
    font-size: 1.2rem;
    margin: 0;
    line-height: 1.6;
}

.page-title-box .breadcrumb {
    padding: 0;
    background-color: transparent;
    margin-bottom: 0;
    font-size: 0.875rem;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .sidebar-wrapper {
        margin-left: -250px;
    }
    
    .sidebar-wrapper.active {
        margin-left: 0;
    }
    
    .main {
        width: 100%;
    }
}