/* =========================================================
   CONFIGURATION
   ========================================================= */

/* ---------------------------------------------------------
   INFORMATION BOXES (.well)
   --------------------------------------------------------- */

.well {
    background: var(--mantis-surface-alt) !important;
    color: var(--mantis-text) !important;
    border: 1px solid var(--mantis-border) !important;
    box-shadow: none !important;
}

/* Headings */
.well p,
.well .bold {
    color: var(--mantis-text) !important;
}

/* Info icon */
.well .fa-info-circle {
    color: var(--mantis-primary) !important;
}

/* Project specific setting */
.well .color-project {
    color: #4caf50 !important;
    font-weight: 600;
}

/* Global/default setting */
.well .color-global {
    color: #64b5f6 !important;
    font-weight: 600;
}

/* Links inside info boxes */
.well a {
    color: #5daeff !important;
}

.well a:hover {
    color: #8ec8ff !important;
}

/* =========================================================
   CONFIGURATION - ACTION BUTTONS
   ========================================================= */

/* Update Configuration */
input[type="submit"][value="Update Configuration"] {
    background: var(--mantis-primary) !important;
    border: 1px solid var(--mantis-primary) !important;
    color: #ffffff !important;
    box-shadow: none !important;
    border-radius: 4px !important;

    /* Space before the delete button */
    margin-bottom: 8px !important;
}

input[type="submit"][value="Update Configuration"]:hover {
    background: var(--mantis-primary-hover) !important;
    border-color: var(--mantis-primary-hover) !important;
    color: #ffffff !important;
}


/* ---------------------------------------------------------
   DELETE PROJECT-SPECIFIC SETTINGS
   --------------------------------------------------------- */

form[action="manage_config_revert.php"] {
    margin-top: 0 !important;
    background: transparent !important;
}

/* Make destructive action red */
form[action="manage_config_revert.php"] input[type="submit"] {
    background: #d32f2f !important;
    border: 1px solid #d32f2f !important;
    color: #ffffff !important;
    box-shadow: none !important;
    border-radius: 4px !important;
}

form[action="manage_config_revert.php"] input[type="submit"]:hover {
    background: #b71c1c !important;
    border-color: #b71c1c !important;
    color: #ffffff !important;
}

/* =========================================================
   CONFIGURATION SUB NAVIGATION
   ========================================================= */

/* Button group container */
.btn-toolbar .btn-group {
    display: inline-flex;
    gap: 0;
}

/* Default button */
.btn-toolbar .btn-group .btn {
    background: var(--mantis-surface-alt) !important;
    color: var(--mantis-text) !important;
    border: 1px solid var(--mantis-border) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 6px 14px !important;
    transition: all 0.2s ease-in-out;
}

/* First button */
.btn-toolbar .btn-group .btn:first-child {
    border-top-left-radius: 4px !important;
    border-bottom-left-radius: 4px !important;
}

/* Last button */
.btn-toolbar .btn-group .btn:last-child {
    border-top-right-radius: 4px !important;
    border-bottom-right-radius: 4px !important;
}

/* Prevent double borders */
.btn-toolbar .btn-group .btn + .btn {
    margin-left: -1px !important;
}

/* Hover */
.btn-toolbar .btn-group .btn:hover {
    background: var(--mantis-surface-hover) !important;
    color: #ffffff !important;
    border-color: var(--mantis-primary) !important;
}

/* Active page */
.btn-toolbar .btn-group .btn.active {
    background: var(--mantis-primary) !important;
    border-color: var(--mantis-primary) !important;
    color: #ffffff !important;
}
