/* Additional custom styles to complement Bootstrap */

/* Layout for sidebar */
body {
    min-height: 100vh;
    overflow-x: hidden;
}

.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    width: 260px;
    background-color: var(--bs-gray-900);
    transition: all 0.3s;
}

.sidebar-content {
    padding: 1.5rem 1rem;
    height: calc(100vh - 48px);
    overflow-y: auto;
}

.sidebar .nav-link {
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 0.25rem;
    color: var(--bs-gray-400);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar .nav-link:hover {
    color: var(--bs-light);
    background-color: var(--bs-gray-800);
}

.sidebar .nav-link.active {
    color: var(--bs-light);
    background-color: var(--bs-primary);
}

.sidebar .nav-link i {
    width: 1.5rem;
    text-align: center;
}

.sidebar-header {
    padding: 0.75rem 1rem;
    color: var(--bs-light);
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 1px solid var(--bs-gray-700);
    margin-bottom: 1rem;
}

.main-content {
    margin-left: 260px;
    padding: 2rem;
    transition: all 0.3s;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .sidebar {
        transform: translateX(-100%);
        width: 100%;
        max-width: 300px;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .sidebar-toggler {
        display: block !important;
    }
}

/* Toggle button */
.sidebar-toggler {
    position: fixed;
    top: 0.75rem;
    left: 1rem;
    z-index: 101;
    display: none;
}

/* Textarea styling */
textarea.form-control {
    font-family: monospace;
    resize: vertical;
}

/* Card styling */
.card {
    border-radius: 8px;
}

/* Make the buttons stand out a bit more */
.btn-primary, .btn-secondary {
    font-weight: 500;
}

/* Error list styling */
.errors-list {
    margin-bottom: 1.5rem;
}

/* Add spacing between sections */
.container > .row {
    margin-bottom: 2rem;
}

/* Better focus styles for textareas */
textarea.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Darker background for textarea to match the dark theme */
textarea.form-control {
    background-color: var(--bs-gray-800);
    color: var(--bs-light);
    border-color: var(--bs-gray-700);
}
