/* Bendras fonas – šviesus, kalėdinis */
.admin-body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: linear-gradient(180deg, #fff8e1 0%, #ffecb3 30%, #ffffff 100%);
    color: #243238;
}

/* centrinė kortelė */
.admin-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 10px;
}

.admin-card {
    width: 100%;
    max-width: 1120px;
    background: #ffffff;
    border-radius: 18px;
    padding: 18px 18px 20px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

/* šventiniai „blizgučiai“ */
.admin-card::before,
.admin-card::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 999px;
}

.admin-card::before {
    top: -130px;
    left: -20%;
    width: 160%;
    height: 200px;
    background:
        radial-gradient(circle, #ffeb3b 0, transparent 70px),
        radial-gradient(circle, #ff8a80 0, transparent 90px),
        radial-gradient(circle, #81c784 0, transparent 80px);
    opacity: 0.35;
}

.admin-card::after {
    bottom: -40px;
    right: -15%;
    width: 60%;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0, transparent 70%);
}

/* turinio konteineris, kad dekoracijos netrukdytų */
.admin-card > * {
    position: relative;
    z-index: 1;
}

/* headeris */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-header h1 {
    margin: 0 0 4px;
    font-size: 24px;
    color: #c62828; /* raudonas */
}

.admin-breadcrumb a {
    font-size: 13px;
    color: #1565c0;
    text-decoration: none;
}
.admin-breadcrumb a:hover {
    text-decoration: underline;
}

.admin-user {
    font-size: 13px;
    color: #455a64;
}
.admin-user a {
    color: #1565c0;
    text-decoration: none;
}
.admin-user a:hover { text-decoration: underline; }

/* navigacija */
.admin-nav {
    margin-top: 10px;
    margin-bottom: 8px;
}
.admin-nav a {
    font-size: 13px;
    margin-right: 10px;
    color: #1565c0;
    text-decoration: none;
}
.admin-nav a strong {
    color: #c62828;
}
.admin-nav a:hover { text-decoration: underline; }

/* grid’as dviem stulpeliams */
.admin-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 14px;
    margin-top: 14px;
}
@media (max-width: 900px) {
    .admin-grid { grid-template-columns: 1fr; }
}

.admin-section h2 {
    margin: 0 0 6px;
    font-size: 18px;
    color: #2e7d32; /* žalias */
}
.admin-section h3 {
    margin: 8px 0 4px;
    font-size: 15px;
    color: #37474f;
}

/* kortelės viduje */
.section-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 10px 12px 12px;
    border: 1px solid #ffe0b2;
}

/* formos ir elementai */
label {
    font-size: 13px;
    font-weight: 500;
    display: block;
    margin-bottom: 3px;
}

input,
select,
button,
textarea {
    font-family: inherit;
    font-size: 13px;
}

input,
select,
textarea {
    padding: 6px 7px;
    border-radius: 8px;
    border: 1px solid #cfd8dc;
    box-sizing: border-box;
    background: #fff;
}

input[type=text],
input[type=email],
input[type=number] {
    width: 100%;
    max-width: 260px;
}

textarea {
    width: 100%;
    max-width: 420px;
    resize: vertical;
    min-height: 60px;
}

/* mygtukai */
button {
    padding: 6px 12px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    background: linear-gradient(45deg, #ffca28, #ffa000);
    color: #1b1b1b;
    margin-top: 4px;
}

button:hover {
    filter: brightness(1.05);
}

.btn-primary {
    background: linear-gradient(45deg, #ef5350, #d32f2f);
    color: #fff;
}

.btn-neutral {
    background: #eceff1;
    color: #37474f;
}

.btn-danger {
    background: linear-gradient(45deg, #ff5252, #c62828);
    color: #fff;
}

.btn-small {
    padding: 4px 9px;
    font-size: 12px;
}

/* formų išdėstymas */
.form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px 14px;
}

.form-row label {
    margin-bottom: 0;
}

.form-column {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
}

.checkbox-label input {
    width: auto;
}

/* pranešimai */
.alert {
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 13px;
    margin: 12px 0 6px;
}

.alert-error {
    background: #ffebee;
    border: 1px solid #ef9a9a;
    color: #b71c1c;
}

.alert-ok {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #1b5e20;
}

/* tekstai */
.hint {
    font-size: 12px;
    color: #546e7a;
    margin: 0 0 6px;
}
.small {
    font-size: 12px;
    color: #78909c;
}

.mt-lg { margin-top: 18px; }
.mt-4  { margin-top: 4px; }

/* šeimų „žetonai“ */
.chip-list {
    list-style: none;
    padding: 0;
    margin: 6px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    padding: 3px 6px;
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    font-size: 13px;
    color: #2e7d32;
}

.chip-delete {
    background: transparent;
    border: none;
    color: #c62828;
    padding: 0 6px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 0;
}

/* lentelė */
.table-card {
    margin-top: 4px;
    border-color: #ffe0b2;
}

.table-scroll {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: 12px;
}

.admin-table th,
.admin-table td {
    border: 1px solid #eceff1;
    padding: 6px;
    vertical-align: top;
}

.admin-table th {
    background: #ffe0b2;
    color: #5d4037;
    font-weight: 600;
}

.admin-table td input[type=text],
.admin-table td input[type=email],
.admin-table td select {
    max-width: 180px;
}

/* kodas su nuoroda */
code {
    font-size: 11px;
    word-break: break-all;
    background: #eceff1;
    padding: 3px 4px;
    border-radius: 4px;
}

/* veiksmai lentelėje */
.actions-cell {
    white-space: nowrap;
}

.actions-cell form {
    margin: 0;
}

/* nuorodos */
a {
    color: #1565c0;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* ---- DALINIMOSI BLOKAS ---- */

.link-cell code {
    display: block;
    margin-bottom: 4px;
}

.share-buttons {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
}


/* tik piktogramos, apvalūs mygtukai */
.share-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 50%;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
}

/* ikonėlės paveiksliukas */
.share-btn img.icon {
    width: 18px;
    height: 18px;
    display: block;
}


/* copy – taip pat apskritimas 28x28 kaip visi */
.share-btn.copy {
    background: transparent;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
}




.share-btn.messenger {
    background: #2962ff;
}

.share-btn.whatsapp {
    background: #00c853;
}

.share-btn.viber {
    background: #7c4dff;
}

.share-btn.sms {
    background: #ffb300;
}

.share-btn:hover {
    filter: brightness(1.07);
}

.share-btn:active {
    transform: scale(0.95);
}
