:root {
    --colors-scale1: #161616;
    --colors-scale2: #1c1c1c;
    --colors-scale3: #232323;
    --colors-scale4: #282828;
    --colors-scale5: #2e2e2e;
    --colors-scale6: #343434;
    --colors-scale7: #3e3e3e;
    --colors-scale8: #505050;
    --colors-scale9: #707070;
    --colors-scale10: #878787;
    --colors-scale11: #a0a0a0;
    --colors-scale12: #ededed;

    --colors-brand: #3ecf8e;
    --colors-brand-hover: #34b27b;
    --danger: #ef4444;
    --good: #22c55e;

    --sidebar-width: 260px;
    --header-height: 60px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--colors-scale2);
    color: var(--colors-scale12);
    font-family: "Inter", sans-serif;
    font-size: 14px;
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Sidebar */
































.user-role {
    color: var(--colors-scale9);
}









body .main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.top-header {
    height: 60px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border-bottom: 1px solid var(--colors-scale5);
    background-color: var(--colors-scale1);
    z-index: 10;
}

.page-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--colors-scale12);
}

.content-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.panel {
    background-color: var(--colors-scale2);
    border: 1px solid var(--colors-scale5);
    border-radius: 8px;
    margin-bottom: 24px;
    overflow: hidden;
}

.panel-head {
    padding: 16px 20px;
    border-bottom: 1px solid var(--colors-scale5);
}

.panel-title {
    font-size: 14px;
    font-weight: 500;
}

.panel-subtitle {
    font-size: 13px;
    color: var(--colors-scale9);
    margin: 4px 0 0;
}

.integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.integration-card {
    background-color: var(--colors-scale2);
    border: 1px solid var(--colors-scale5);
    border-radius: 8px;
    padding: 20px;
    transition: border-color 0.2s;
}

.integration-card:focus-within {
    border-color: var(--colors-brand);
}

.integration-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.integration-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 500;
}

.integration-title img {
    border-radius: 4px;
}

.integration-body {
    border-top: 1px solid var(--colors-scale5);
    padding-top: 16px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 16px;
}

.field-label {
    display: block;
    font-size: 12px;
    color: var(--colors-scale11);
    margin-bottom: 6px;
    font-weight: 500;
}

.input-text {
    width: 100%;
    background-color: var(--colors-scale1);
    border: 1px solid var(--colors-scale5);
    color: var(--colors-scale12);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}

.input-text:focus {
    outline: none;
    border-color: var(--colors-brand);
}

.help-text {
    font-size: 12px;
    color: var(--colors-scale9);
    margin-top: 4px;
}

.help-text a {
    color: var(--colors-brand);
    text-decoration: none;
}

.help-text a:hover {
    text-decoration: underline;
}

/* Switches */
.switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--colors-scale5);
    transition: .2s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .2s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--colors-brand);
}

input:checked+.slider:before {
    transform: translateX(16px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--colors-scale5);
    background: var(--colors-scale2);
    color: var(--colors-scale12);
}

.btn:hover {
    border-color: var(--colors-scale7);
    background: var(--colors-scale3);
}

.btn.primary {
    background: var(--colors-brand);
    border-color: var(--colors-brand);
    color: #000;
}

.btn.primary:hover {
    background: var(--colors-brand-hover);
    border-color: var(--colors-brand-hover);
}

/* Page loader */
.page-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--colors-bg);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.page-loader[aria-hidden="true"] {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 64px;
    height: 64px;
}

.loader-svg {
    width: 100%;
    height: 100%;
    animation: rotate 2s linear infinite;
}

.loader-stroke {
    fill: none;
    stroke: var(--colors-brand);
    stroke-width: 4;
    stroke-linejoin: round;
    stroke-dasharray: 120;
    stroke-dashoffset: 0;
    animation: draw 1.5s ease-in-out infinite alternate;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes draw {
    0% {
        stroke-dashoffset: 120;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

/* Inherited sidebar styles are assumed globally from other components or inline */