/* RocksAdmin Custom Styles */

/* Sidebar */
.sidebar {
    width: 250px;
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

#page-content-wrapper {
    margin-left: 250px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#page-content-wrapper main {
    flex: 1;
}

.sidebar .nav-link {
    color: #adb5bd;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    margin: 1px 0;
    font-size: 0.9rem;
}

.sidebar .nav-link:hover {
    color: #fff;
    background-color: rgba(255,255,255,0.08);
}

.sidebar .nav-link.active {
    color: #fff;
    background-color: rgba(13,110,253,0.3);
}

.sidebar .nav-header {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}

/* Mobile sidebar toggle */
@media (max-width: 767.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.show {
        transform: translateX(0);
    }
    #page-content-wrapper {
        margin-left: 0;
    }
}

/* Tables */
.table-dark a {
    color: #6ea8fe;
    text-decoration: none;
}
.table-dark a:hover {
    color: #9ec5fe;
    text-decoration: underline;
}

/* DataTables dark theme overrides */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    background-color: #2b3035;
    border-color: #495057;
    color: #dee2e6;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    color: #adb5bd;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: #adb5bd !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: rgba(13,110,253,0.3) !important;
    border-color: rgba(13,110,253,0.5) !important;
    color: #fff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: rgba(255,255,255,0.1) !important;
    border-color: rgba(255,255,255,0.2) !important;
    color: #fff !important;
}

/* Cards */
.card {
    background-color: #212529;
}

.card-header {
    background-color: rgba(255,255,255,0.03);
    border-bottom-color: rgba(255,255,255,0.1);
}

/* Pagination component */
.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

/* Form styles */
.form-section {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.5rem;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.form-section h5 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Badge overrides */
.badge {
    font-weight: 500;
}

/* Action buttons */
.btn-actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* Delete confirmation */
.delete-form {
    display: inline;
}
