@import url('includes/reset.css');
@import url('includes/variables.css');
@import url('includes/navbar.css');
@import url('includes/sidebar.css');
@import url('includes/footer.css');
@import url('includes/buttons.css');
@import url('includes/toggles.css');
@import url('includes/documentation.css');

/* Bootstrap dark background colour override */
body {
    background-color: var(--background-colour) !important;
}

/* Feedback button colour */
.feedback-button {
    color: #ffffff !important;
}

/* Content area styling */
.container-guest { /* For guest users without side/navbar (public documentation) */
    width: 100% !important;
    max-width: 90% !important;
    margin: 0 !important;
}
.content {
    margin-top: calc(var(--navbar-height) + 3rem);
    margin-left: var(--sidebar-width);
    padding: 25px 0px 15px 0px;
    flex: 1;
    background-color: var(--background-colour);
    transition: margin-left 0.3s ease, padding 0.3s ease;
}
.content-guest { /* For guest users without side/navbar (public documentation) */
    margin-left: auto !important;
}
.content-title {
    font-size: 30px;
    font-weight: 600;
    color: var(--text-colour);
    margin-bottom: 30px;
}

.dashboard-card {
    flex: 1 1 calc(33.333% - 20px);
    min-width: 300px;
    background-color: var(--background-colour);
    padding: 30px;
    margin: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 8px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.dashboard-text {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Dashboard Form Styles */
.dashboard-card form {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    margin: 0px 0px 20px 0px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.dashboard-card .form-group {
    display: flex;
    flex-direction: row;
}
.dashboard-card label {
    font-weight: 300;
    font-size: 14px;
    color: #e5e7eb;
    margin-bottom: 5px;
    padding: 5px 15px 0px 0px;
}
.dashboard-card input, .dashboard-card select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 5px;
    color: var(--text-colour);
    font-size: 16px;
    transition: border 0.3s ease-in-out;
}
.dashboard-card input:not([type="checkbox"]):focus,
.dashboard-card input[type="text"]:focus,
.dashboard-card input[type="date"]:focus,
.dashboard-card input[type="email"]:focus {
    border-color: #6366f1;
    outline: none;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.6);
}
.form-switch .form-check-input {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;

    width: 2.5em;
    height: 1.5em;
    border-radius: 2em;
    background-color: #dee2e6;
    background-image: var(--bs-form-switch-bg);
    background-position: left center;
    background-repeat: no-repeat;
    background-size: contain;
    transition: background-position .15s ease-in-out;
}
.form-switch .form-check-input:checked {
    background-color: #0d6efd;
    background-position: right center;
    border-color: #0d6efd;
}

.dashboard-card .submit {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}
.dashboard-card .submit:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}
/* Modifier class for inline forms within rows */
.form-inline-row {
    background: transparent;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.form-inline-rogw {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    flex-direction: unset !important;
    gap: 0 !important;
}

/* Button styling for actions (e.g., "Save" or "Submit") */
button {
    background-color: var(--primary-color);
    color: var(--text-color);
    font-size: 16px;
    font-weight: 500;
    /* padding: 10px 20px; */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}
button:active {
    transform: translateY(0);
    background-color: var(--primary-color);
}

/* Modals & Popups */
.modal-dark {
    position: fixed;
    z-index: 1050;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #202020;
    padding: 2rem;
    border-radius: 10px;
    color: var(--text-colour);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
    max-width: 90%;
    width: 400px;
}

/* List Styling */
.list-spaced li + li {
    margin-top: 0.5rem;
}

/* Code Block Styling */
.code-block {
    background-color: #2c2f33;   /* Dark gray */
    color: #e9ecef;              /* Light text */
    padding: 1rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    overflow-x: auto;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    word-break: break-word;
}
.code-block code {
    font-family: "Lucida Console", "Courier New", monospace !important;
}

/* Responsive Styling */
@media (max-width: 1024px) {
    .content { margin-left: 200px; }
}
@media (max-width: 768px) {
    .content { margin-left: 0; }
}
