:root {
    --app-brand: #33cabb;
    --app-brand-dark: #1c7068;
    --app-surface: #ffffff;
    --app-soft: #f7f9fb;
    --app-line: #e9edf2;
    --app-text: #4d5259;
    --app-muted: #8b96a3;
}

body[data-theme="dark"] {
    --app-surface: #282d33;
    --app-soft: #22262c;
    --app-line: #3a4048;
    --app-text: #d7dce3;
    --app-muted: #939eaa;
    --app-brand: #45d1c3;
    --app-brand-dark: #85e5dc;
}

body[data-theme="translucent"] {
    --app-surface: rgba(255, 255, 255, .9);
    --app-soft: rgba(245, 248, 250, .78);
    --app-line: rgba(218, 225, 232, .72);
    --app-text: #46515e;
}

.p-b-30 {
    padding-bottom: 30px;
}

.text-break {
    word-break: break-word !important;
}

.app-sidebar-brand {
    display: flex;
    height: 68px;
    align-items: center;
    padding: 0 16px;
    text-align: left !important;
}

.app-sidebar-brand:hover,
.app-sidebar-brand:focus {
    text-decoration: none;
}

.app-sidebar-logo {
    display: inline-flex;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--app-brand);
    color: #fff;
    font-size: 21px;
    line-height: 1;
}

.app-sidebar-name {
    display: flex;
    overflow: hidden;
    flex-direction: column;
    margin-left: 11px;
    white-space: nowrap;
    transition: opacity .18s ease;
}

.app-sidebar-name strong {
    color: var(--app-text);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
}

.app-sidebar-name small {
    margin-top: 2px;
    color: var(--app-muted);
    font-size: 8px;
    letter-spacing: .8px;
}

.lyear-layout-sidebar-close .lyear-layout-sidebar:not(:hover) .app-sidebar-name {
    opacity: 0;
}

.lyear-layout-sidebar-close .lyear-layout-sidebar:not(:hover) .app-sidebar-brand {
    padding-right: 12px;
    padding-left: 12px;
}

.navbar-text {
    color: var(--app-text);
    font-size: 15px;
    font-weight: 500;
}

.dropdown-profile .img-avatar {
    border-radius: 50%;
}

.dropdown-profile .dropdown-item button,
button.dropdown-item {
    width: 100%;
    border: 0;
    text-align: left;
}

.app-identity {
    display: flex;
    min-width: 210px;
    align-items: center;
}

.app-icon {
    display: inline-flex;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    border-radius: 11px;
    background: rgba(51, 202, 187, .12);
    color: var(--app-brand-dark);
    font-size: 17px;
    font-weight: 700;
}

.app-icon.app-icon-lg {
    flex-basis: 58px;
    width: 58px;
    height: 58px;
    border-radius: 14px;
    font-size: 23px;
}

.app-name {
    display: block;
    color: var(--app-text);
    font-size: 14px;
    font-weight: 500;
}

.app-name:hover,
.app-name:focus {
    color: var(--app-brand-dark);
}

.app-package {
    display: block;
    overflow: hidden;
    max-width: 300px;
    margin-top: 2px;
    color: var(--app-muted);
    font-family: Consolas, Monaco, monospace;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.code-inline {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    background: var(--app-soft);
    color: #2f6f9f;
    font-family: Consolas, Monaco, monospace;
    font-size: 11px;
}

body[data-theme="dark"] .code-inline {
    color: #8bc7f1;
}

.action-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.action-buttons .btn {
    width: auto;
    height: auto;
    min-height: 30px;
    padding: 4px 10px;
    line-height: 1.4;
}

.empty-state {
    padding: 54px 20px;
    color: var(--app-muted);
    text-align: center;
}

.empty-state-icon {
    display: inline-flex;
    width: 74px;
    height: 74px;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 50%;
    background: rgba(51, 202, 187, .1);
    color: var(--app-brand);
    font-size: 34px;
}

.empty-state h3 {
    color: var(--app-text);
    font-size: 17px;
    font-weight: 500;
}

.upload-box {
    display: flex;
    min-height: 300px;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    padding: 35px;
    border: 2px dashed #d8dfe7;
    border-radius: 8px;
    background: var(--app-soft);
    cursor: pointer;
    text-align: center;
    transition: .2s ease;
}

.upload-box:hover,
.upload-box.is-dragging {
    border-color: var(--app-brand);
    background: rgba(51, 202, 187, .055);
}

.upload-box.has-file {
    border-style: solid;
    border-color: var(--app-brand);
    background: rgba(51, 202, 187, .075);
}

.upload-icon {
    display: inline-flex;
    width: 80px;
    height: 80px;
    align-items: center;
    justify-content: center;
    margin-bottom: 17px;
    border-radius: 50%;
    background: rgba(51, 202, 187, .12);
    color: var(--app-brand);
    font-size: 38px;
}

.upload-box h3 {
    margin-bottom: 8px;
    color: var(--app-text);
    font-size: 18px;
    font-weight: 500;
}

.upload-box p {
    margin-bottom: 0;
    color: var(--app-muted);
    font-size: 13px;
}

.selected-file {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 5px;
    background: rgba(40, 167, 69, .1);
    color: #218838;
    font-size: 12px;
}

.info-strip {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 15px;
    border: 1px solid rgba(51, 202, 187, .25);
    border-radius: 6px;
    background: rgba(51, 202, 187, .06);
    color: var(--app-text);
    font-size: 12px;
    line-height: 1.75;
}

.info-strip .mdi {
    color: var(--app-brand);
    font-size: 19px;
}

.storage-provider-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 12px;
}

.storage-provider-card {
    position: relative;
    margin-bottom: 0;
    cursor: pointer;
}

.storage-provider-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.storage-provider-card > span {
    display: flex;
    min-height: 104px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 10px;
    border: 1px solid var(--app-line);
    border-radius: 7px;
    background: var(--app-soft);
    text-align: center;
    transition: .18s ease;
}

.storage-provider-card .mdi {
    margin-bottom: 7px;
    color: var(--app-muted);
    font-size: 25px;
}

.storage-provider-card strong {
    color: var(--app-text);
    font-size: 13px;
    font-weight: 500;
}

.storage-provider-card small {
    margin-top: 3px;
    color: var(--app-muted);
    font-size: 10px;
}

.storage-provider-card input:checked + span {
    border-color: var(--app-brand);
    background: rgba(51, 202, 187, .08);
    box-shadow: inset 0 0 0 1px var(--app-brand);
}

.storage-provider-card input:checked + span .mdi,
.storage-provider-card input:checked + span strong {
    color: var(--app-brand-dark);
}

.storage-config-panel {
    padding-top: 5px;
}

.storage-panel-title {
    margin: 0;
    color: var(--app-text);
    font-size: 16px;
    font-weight: 500;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.detail-item {
    padding: 13px 15px;
    border-radius: 6px;
    background: var(--app-soft);
}

.detail-item span {
    display: block;
    margin-bottom: 3px;
    color: var(--app-muted);
    font-size: 10px;
    letter-spacing: .4px;
}

.detail-item strong {
    color: var(--app-text);
    font-size: 12px;
    font-weight: 500;
}

.api-hero {
    overflow: hidden;
    position: relative;
    padding: 26px;
    border-radius: 8px;
    background: linear-gradient(120deg, #263442, #172430);
    color: #fff;
}

.api-hero::after {
    position: absolute;
    top: -80px;
    right: -60px;
    width: 250px;
    height: 250px;
    border: 42px solid rgba(51, 202, 187, .12);
    border-radius: 50%;
    content: "";
}

.api-hero h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 7px;
    font-size: 23px;
    font-weight: 500;
}

.api-hero p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(255, 255, 255, .63);
}

.method-badge {
    display: inline-block;
    margin-right: 8px;
    padding: 2px 7px;
    border-radius: 3px;
    background: #28a745;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    vertical-align: middle;
}

.endpoint {
    display: block;
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 5px;
    background: rgba(0, 0, 0, .18);
    color: #b9f2ec;
    font-family: Consolas, Monaco, monospace;
    font-size: 12px;
    word-break: break-all;
}

.code-block {
    position: relative;
    overflow: auto;
    margin: 0;
    padding: 17px 18px;
    border-radius: 5px;
    background: #202934;
    color: #dbe8f3;
    font-family: Consolas, Monaco, monospace;
    font-size: 12px;
    line-height: 1.7;
    white-space: pre;
}

.copy-code {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 8px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 3px;
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .65);
    font-size: 10px;
    cursor: pointer;
}

.doc-section h2 {
    margin: 0 0 14px;
    color: var(--app-text);
    font-size: 16px;
    font-weight: 500;
}

.doc-section + .doc-section {
    margin-top: 25px;
}

.auth-visual {
    background-image: linear-gradient(120deg, rgba(20, 40, 48, .2), rgba(16, 45, 53, .52)), url("../lyear/images/login-bg-1.jpg");
    background-position: center;
    background-size: cover;
}

.auth-visual-brand {
    display: flex;
    align-items: center;
    margin-bottom: 13px;
    color: #fff;
    font-size: 21px;
    font-weight: 500;
}

.auth-visual-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    border-radius: 10px;
    background: rgba(51, 202, 187, .9);
    font-size: 23px;
}

.auth-form-heading {
    margin-bottom: 25px;
}

.auth-form-icon {
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border-radius: 14px;
    background: #33cabb;
    color: #fff;
    font-size: 30px;
    box-shadow: 0 7px 18px rgba(51, 202, 187, .25);
}

.auth-form-heading h1 {
    margin: 0 0 5px;
    color: #4d5259;
    font-size: 21px;
    font-weight: 500;
}

.auth-copyright {
    color: #a2aab3;
    font-size: 11px;
    line-height: 1.8;
}

body.auth-page-body[data-theme="dark"] .auth-form-heading h1,
body.auth-page-body[data-theme="dark"] .form-group label {
    color: #4d5259;
}

body.auth-page-body[data-theme="dark"] .form-control {
    border-color: #ced4da;
    background-color: #fff;
    color: #495057;
}

body.auth-page-body[data-theme="dark"] .text-muted {
    color: #8b96a3 !important;
}

@media (max-width: 767.98px) {
    .app-identity {
        min-width: 180px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .storage-provider-grid {
        grid-template-columns: 1fr;
    }

    .api-hero {
        padding: 20px;
    }
}
