﻿* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    background: #101318;
    color: #e9edf2;
}

body {
    min-height: 100vh;
}

a {
    color: #8fc7ff;
}

.ll-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.ll-card {
    width: 100%;
    max-width: 860px;
    padding: 42px;
    background: #181d24;
    border: 1px solid #303844;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.ll-brand {
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
}

h1 {
    margin-top: 0;
    font-size: 34px;
}

p,
li {
    line-height: 1.6;
}

.ll-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 30px 0;
}

    .ll-links a {
        display: inline-block;
        padding: 12px 18px;
        text-decoration: none;
        color: #ffffff;
        background: #28313c;
        border: 1px solid #3b4654;
        border-radius: 6px;
    }

        .ll-links a:hover {
            background: #34404e;
        }

.ll-status {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #303844;
    color: #aab3bd;
}

.ll-admin-shell {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px;
}

.ll-admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.ll-admin-header h1 {
    margin: 4px 0 0 0;
}

.ll-admin-header-actions {
    display: flex;
    gap: 10px;
}

.ll-admin-organization {
    margin-bottom: 36px;
}

.ll-admin-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 18px;
}

.ll-admin-section-heading h2 {
    margin: 0 0 6px 0;
    font-size: 27px;
}

.ll-admin-meta {
    color: #9ca7b3;
    font-size: 13px;
}

.ll-separator {
    display: inline-block;
    margin: 0 7px;
    color: #66717d;
}

.ll-status-pill {
    display: inline-block;
    padding: 3px 8px;
    border: 1px solid #405064;
    border-radius: 12px;
    background: #25303b;
    color: #dbe7f4;
    font-size: 11px;
    font-weight: bold;
}

.ll-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.ll-stat-card {
    padding: 22px;
    background: #181d24;
    border: 1px solid #303844;
    border-radius: 10px;
}

.ll-stat-value {
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
}

.ll-stat-label {
    margin-top: 8px;
    color: #9ca7b3;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.ll-admin-products-card {
    max-width: none;
    padding: 26px;
}

.ll-admin-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.ll-admin-card-heading h3 {
    margin: 0;
    font-size: 22px;
}

.ll-admin-card-heading p {
    margin: 5px 0 0 0;
    color: #9ca7b3;
}

.ll-button {
    display: inline-block;
    padding: 10px 15px;
    border: 1px solid #4b6177;
    border-radius: 6px;
    background: #30445a;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
}

.ll-button:hover {
    background: #3b526a;
}

.ll-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.ll-button-secondary {
    background: #252d36;
    border-color: #3c4651;
}

.ll-button-small {
    padding: 7px 11px;
    font-size: 12px;
}

.ll-product-panel {
    overflow: hidden;
    margin-top: 16px;
    border: 1px solid #303844;
    border-radius: 8px;
    background: #12171d;
}

.ll-product-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #303844;
}

.ll-product-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ll-product-title-row h4 {
    margin: 0;
    font-size: 20px;
}

.ll-product-description {
    margin: 10px 0 0 0;
    color: #bcc5ce;
    font-size: 14px;
}

.ll-policy-table-wrap {
    overflow-x: auto;
}

.ll-policy-table {
    width: 100%;
    border-collapse: collapse;
}

.ll-policy-table th,
.ll-policy-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #29323c;
    text-align: left;
    vertical-align: top;
    white-space: nowrap;
}

.ll-policy-table th {
    background: #1a2028;
    color: #9faab6;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.ll-policy-table td {
    font-size: 13px;
}

.ll-policy-table tbody tr:last-child td {
    border-bottom: 0;
}

.ll-policy-table tbody tr:hover {
    background: #181f27;
}

.ll-table-note {
    margin-top: 4px;
    color: #8794a2;
    font-size: 11px;
}

.ll-empty-state {
    padding: 25px;
    border: 1px dashed #39434e;
    border-radius: 7px;
    color: #9ca7b3;
    text-align: center;
}

.ll-empty-table-cell {
    color: #9ca7b3;
    text-align: center !important;
}

.ll-admin-footer {
    margin-top: 30px;
    padding: 20px 0;
    border-top: 1px solid #303844;
    color: #737f8b;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 900px) {
    .ll-admin-shell {
        padding: 20px;
    }

    .ll-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ll-admin-header,
    .ll-admin-card-heading,
    .ll-product-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .ll-stat-grid {
        grid-template-columns: 1fr;
    }
}

.ll-login-card {
    max-width: 460px;
}

.ll-alert {
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid #465361;
    border-radius: 6px;
    background: #202832;
}

.ll-alert-success {
    border-color: #416752;
    background: #1b3326;
}

.ll-alert-error {
    border-color: #7b4545;
    background: #3a2020;
}

.ll-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ll-form-group label {
    color: #b7c1cc;
    font-size: 12px;
    font-weight: bold;
}

.ll-form-group input,
.ll-form-group select,
.ll-form-group textarea {
    width: 100%;
    padding: 10px 11px;
    border: 1px solid #3d4854;
    border-radius: 5px;
    outline: none;
    background: #10151b;
    color: #edf2f7;
    font-family: inherit;
    font-size: 14px;
}

.ll-form-group input:focus,
.ll-form-group select:focus,
.ll-form-group textarea:focus {
    border-color: #6688aa;
}

.ll-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ll-form-full {
    grid-column: 1 / -1;
}

.ll-form-checkbox {
    justify-content: center;
}

.ll-form-checkbox label {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    cursor: pointer;
}

.ll-form-checkbox input {
    width: auto;
    margin: 0;
}

.ll-modal {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.72);
}

.ll-modal-open {
    display: flex;
}

.ll-modal-dialog {
    width: 100%;
    max-width: 760px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    border: 1px solid #3b4652;
    border-radius: 10px;
    background: #181d24;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55);
}

.ll-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 22px;
    border-bottom: 1px solid #303844;
}

.ll-modal-header h2 {
    margin: 0;
    font-size: 21px;
}

.ll-modal-close {
    padding: 0;
    border: 0;
    background: transparent;
    color: #aeb8c3;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.ll-modal-dialog form {
    padding: 22px;
}

.ll-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #303844;
}

.ll-admin-header-actions form {
    margin: 0;
}

@media (max-width: 700px) {
    .ll-form-grid {
        grid-template-columns: 1fr;
    }

    .ll-form-full {
        grid-column: auto;
    }
}

.ll-customer-card {
    margin-top: 20px;
}

.ll-customer-panel {
    overflow: hidden;
    margin-top: 16px;
    border: 1px solid #303844;
    border-radius: 8px;
    background: #12171d;
}

.ll-customer-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
}

.ll-customer-heading h4 {
    margin: 0;
    font-size: 18px;
}

.ll-customer-no-licenses {
    padding: 15px 20px;
    border-top: 1px solid #303844;
    color: #8995a2;
    font-size: 13px;
}

.ll-license-key {
    font-family: Consolas, "Courier New", monospace;
    font-weight: bold;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.ll-license-note {
    margin-top: 20px;
    padding: 12px 14px;
    border: 1px solid #344252;
    border-radius: 6px;
    background: #121820;
    color: #aeb9c4;
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 700px) {
    .ll-customer-heading {
        flex-direction: column;
    }
}
