/* --- Global and Base Styles --- */

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
/*    margin-bottom: 60px;
*/    background-color: #f1f4f9;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.delete-section {
    display: inline;
}

/* --- Sharp Modern Settings Module --- */

:root {
    --settings-primary: #4361ee;
    --settings-border: #d1d9e6;
    --settings-text-dark: #1a202c;
    --settings-text-muted: #718096;
    --settings-sidebar-bg: #ffffff;
}

.settings-wrapper {
    display: flex;
    gap: 0;
    padding: 0;
    min-height: calc(100vh - 60px);
}

.settings-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: var(--settings-sidebar-bg);
    border-right: 1px solid var(--settings-border);
    height: auto;
}

    .settings-sidebar .sidebar-header {
        padding: 2rem 1.5rem;
        border-bottom: 1px solid var(--settings-border);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        background: #fff;
    }

        .settings-sidebar .sidebar-header h5 {
            color: var(--settings-text-dark);
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin: 0;
            font-size: 1.1rem;
        }

    .settings-sidebar .sidebar-subtitle {
        color: var(--settings-text-muted);
        font-size: 0.7rem;
        margin-top: 4px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

.settings-nav {
    display: flex;
    flex-direction: column;
}

.settings-nav-item {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    color: var(--settings-text-dark);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    text-decoration: none !important;
    border-bottom: 1px solid #f8f9fa;
    border-left: 4px solid transparent;
}

    .settings-nav-item i {
        width: 24px;
        margin-right: 12px;
        font-size: 1rem;
        color: var(--settings-text-muted);
        text-align: center;
    }

    .settings-nav-item:hover {
        background: #f8f9fa;
        border-left-color: var(--settings-border);
    }

    .settings-nav-item.active {
        background: #f0f4ff;
        color: var(--settings-primary);
        font-weight: 700;
        border-left-color: var(--settings-primary);
    }

        .settings-nav-item.active i {
            color: var(--settings-primary);
        }

.settings-group-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #a0aec0;
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
    font-weight: 800;
    background: #fafbfc;
    border-bottom: 1px solid #f0f0f0;
}

.settings-main-content {
    flex-grow: 1;
    background: #ffffff;
    padding: 3rem;
    min-width: 0;
}

/* Mobile Responsive Sharp Settings */
@media (max-width: 992px) {
    .settings-wrapper {
        flex-direction: column;
    }

    .settings-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--settings-border);
    }

    .settings-nav {
        flex-direction: row;
        overflow-x: auto;
        scrollbar-width: none;
    }

        .settings-nav::-webkit-scrollbar {
            display: none;
        }

    .settings-nav-item {
        border-left: none;
        border-bottom: 3px solid transparent;
        padding: 15px 20px;
        white-space: nowrap;
    }

        .settings-nav-item.active {
            border-bottom-color: var(--settings-primary);
            background: transparent;
        }

    .settings-group-label {
        display: none;
    }
}

/* --- Button Styles --- */

.buttoncentre {
    background-color: lightskyblue;
    border: none;
    color: white;
    padding: 20px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 16px;
}

.buttoncentrehover:hover {
    background-color: deepskyblue;
}

.buttondefault {
    background-color: lightskyblue;
    border: none;
    color: white;
    padding: 12px 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 5px;
    float: right;
}

/* --- Secogate Logo --- */

.Secogate-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

    .Secogate-logo .cx-icon {
        background: linear-gradient(145deg, #55b8f5 0%, #2B96E8 40%, #1a7fd4 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    }

    .Secogate-logo .cx-word {
        display: inline-flex;
        align-items: center;
        font-family: 'Inter', sans-serif;
        font-weight: 800;
        color: #1a2e4a;
        line-height: 1;
        letter-spacing: -0.5px;
    }

    .Secogate-logo .cx-x-svg {
        display: inline-block;
        vertical-align: middle;
        position: relative;
    }

    /* Small — Sidebar / Mobile */
    .Secogate-logo.sm {
        gap: 8px;
    }

        .Secogate-logo.sm .cx-icon {
            width: 32px;
            height: 32px;
            border-radius: 7px;
        }

            .Secogate-logo.sm .cx-icon svg {
                width: 18px;
                height: 18px;
            }

        .Secogate-logo.sm .cx-word {
            font-size: 18px;
        }

        .Secogate-logo.sm .cx-x-svg {
            width: 13px;
            height: 18px;
            margin: 0;
            top: -1px;
        }

    /* Medium — Default Navbar */
    .Secogate-logo.md {
        gap: 11px;
    }

        .Secogate-logo.md .cx-icon {
            width: 46px;
            height: 46px;
            border-radius: 11px;
        }

            .Secogate-logo.md .cx-icon svg {
                width: 26px;
                height: 26px;
            }

        .Secogate-logo.md .cx-word {
            font-size: 28px;
        }

        .Secogate-logo.md .cx-x-svg {
            width: 20px;
            height: 27px;
            margin: 0 1px;
            top: -2px;
        }

    /* Large — Login / Splash */
    .Secogate-logo.lg {
        gap: 14px;
    }

        .Secogate-logo.lg .cx-icon {
            width: 64px;
            height: 64px;
            border-radius: 14px;
        }

            .Secogate-logo.lg .cx-icon svg {
                width: 36px;
                height: 36px;
            }

        .Secogate-logo.lg .cx-word {
            font-size: 40px;
            letter-spacing: -1px;
        }

        .Secogate-logo.lg .cx-x-svg {
            width: 28px;
            height: 38px;
            margin: 0 1px;
            top: -3px;
        }

    /* XL — Marketing / Hero */
    .Secogate-logo.xl {
        gap: 18px;
    }

        .Secogate-logo.xl .cx-icon {
            width: 90px;
            height: 90px;
            border-radius: 20px;
        }

            .Secogate-logo.xl .cx-icon svg {
                width: 52px;
                height: 52px;
            }

        .Secogate-logo.xl .cx-word {
            font-size: 58px;
            letter-spacing: -1.5px;
        }

        .Secogate-logo.xl .cx-x-svg {
            width: 40px;
            height: 56px;
            margin: 0 2px;
            top: -4px;
        }
