html,
body {
    width: 100%;
}

.adminH {
    text-align: center
}

.admin-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}

/* 🔥 CONTENT */
.admin-content {
    flex: 1;
    width: 100%;
    background: #f8fafc;
    padding: 18px;
    min-height: 500px;
    overflow-y: auto;
    box-sizing: border-box;
}

/* SCROLLBAR STYLE */
.admin-content::-webkit-scrollbar {
    height: 10px;
    width: 10px;
}

.admin-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.admin-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.admin-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 🔥 NAVBAR */
.admin-sidebar {
    width: 100%;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    padding: 10px 14px;
    /* ⬅ ešte menšie */
    color: #fff;

    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    /* ⬅ ešte menšie */
    justify-content: center;
    overflow: hidden;
    white-space: nowrap;
}

/* 🔥 MENU BUTTON */
.menu-title {
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 10px;
    /* ⬅ ešte menšie */
    cursor: pointer;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: wrap;
    font-weight: 500;
    font-size: 12px;
    /* ⬅ ešte menšie */
    color: #e2e8f0;
    transition: all 0.2s ease;
}


/* hover */
.menu-title:hover {
    background: rgba(59, 130, 246, 0.3);
    color: #fff;
}

/* ACTIVE */
.menu-section.active .menu-title {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
}


/* 🔥 DROPDOWN */
.menu-items {
    display: none;
}

.menu-section.active .menu-items {
    display: block;
}

/* 🔥 ITEMS */
.menu-items a {
    display: block;
    padding: 5px 8px;

    background: rgba(255, 255, 255, 0.08);
    margin-top: 4px;
    white-space: wrap;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    color: #fff;
    text-decoration: none;
}

.menu-items a:hover {
    background: #3b82f6;
}

/* 🔥 TABLE */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    table-layout: fixed;

    /* 🔥 kľúč */
}

.admin-table thead th {
    position: sticky;
    top: 0;
    background: #1e293b;
    color: white;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.admin-table th,
.admin-table td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: left;
    height: 100%;
    /* 🔥 zalamovanie textu */
    overflow: hidden;
    font-size: 12px;
    /* 🔥 zmenší text */
}

.desc-cell {
    max-width: 250px;
    overflow: hidden;
}

.desc-cell span {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-table th {
    background: #2c3e50;
    color: #fff;
}

.admin-table tr:nth-child(2n) {
    background: #f5f5f5
}

.role-admin {
    color: red;
    font-weight: 700
}

.role-user {
    color: green;
    font-weight: 700
}

.admin-chat-btn {
    display: inline-block;
    padding: 10px 15px;
    background: #2c7be5;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    margin-top: 10px
}

.admin-chat-btn:hover {
    background: #1a5edb
}

.admin-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.admin-thumb:hover {
    transform: scale(1.05);
}

/* 🔥 MODAL */
#imageModal {
    display: none;
    position: fixed;
    z-index: 999999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);

    justify-content: center;
    align-items: center;
}

/* 🔥 OBRÁZOK MAX SIZE */
#imageModal img {
    width: auto;
    height: auto;

    max-width: 60vw;
    max-height: 60vh;

    object-fit: contain;

    border: none;
    background: transparent;
}

/* 🔥 CLOSE */
.close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

/* 🔥 ARROWS */
#prevBtn,
#nextBtn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    font-size: 45px;
    color: white;
    padding: 15px;
    cursor: pointer;
    border-radius: 50%;
}

#prevBtn {
    left: 20px;
}

#nextBtn {
    right: 20px;
}

.msg {
    padding: 8px;
    margin: 5px;
    border-radius: 8px;
    max-width: 70%;
}

/* admin (ty) */
.my-msg {
    background: #3b82f6;
    color: white;
    margin-left: auto;
    text-align: right;
}

/* user */
.other-msg {
    background: #eee;
    text-align: left;
}

/* system */
.system-msg {
    text-align: center;
    color: gray;
    font-style: italic;
    background: transparent;
}

.admin-user-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.admin-user-card H2 {
    text-align: center;
}

.user-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 25px;
}

.avatar-box img {
    margin-top: 10px;
    border-radius: 10px;
}

.admin-chat-btn {
    display: block;
    width: fit-content;
    margin: 15px auto;
    padding: 10px 15px;
    background: #3498db;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
}

.user-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.user-form-grid input,
.user-form-grid select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.save-btn {
    grid-column: span 2;
    padding: 12px;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 30%;
    justify-self: center;

}

/* STATS*/

/* ========================= */
/* WRAPPER */
/* ========================= */

.money-wrapper {
    padding: 40px;
    background: #f5f7fb;
    min-height: 100vh;
}

/* ========================= */
/* HEADING */
/* ========================= */

.money-heading {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #111827;
}

.money-subheading {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 10px;
}

/* ========================= */
/* GRID */
/* ========================= */

.money-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 35px;
}

/* ========================= */
/* CARD */
/* ========================= */

.money-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
    transition: 0.2s;
    border: 1px solid #ececec;
}

/* ========================= */
/* TITLE */
/* ========================= */

.money-title {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================= */
/* VALUE */
/* ========================= */

.money-value {
    font-size: 42px;
    font-weight: 700;
    color: #111827;
    line-height: 1.1;
}

/* ========================= */
/* INFO */
/* ========================= */

.money-info {
    margin-top: 15px;
    font-size: 14px;
    color: #9ca3af;
}

/* ========================= */
/* COLORS */
/* ========================= */

.revenue-card {
    border-left: 5px solid #16a34a;
}

.stripe-card {
    border-left: 5px solid #2563eb;
}

.wallet1-card {
    border-left: 5px solid #9333ea;
}

.pending-card {
    border-left: 5px solid #f59e0b;
}

.cancelled-card {
    border-left: 5px solid #ef4444;
}

.refund-card {
    border-left: 5px solid #dc2626;
}

.withdrawal-card {
    border-left: 5px solid #0f766e;
}

.profit-card {
    border-left: 5px solid #22c55e;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 25px;
    margin-top: 35px;
}

.chart-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.chart-card h3 {
    margin-bottom: 20px;
    font-size: 20px;
    color: #111827;
}

.transactions-box {
    margin-top: 40px;
    background: #fff;
    border-radius: 18px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.transactions-header {
    margin-bottom: 20px;
}

.transactions-header h2 {
    font-size: 24px;
    color: #111827;
}

.transactions-table {
    width: 100%;
    border-collapse: collapse;
}

.transactions-table thead {
    background: #f3f4f6;
}

.transactions-table th {
    padding: 14px;
    text-align: left;
    font-size: 14px;
    color: #374151;
}

.transactions-table td {
    padding: 14px;
    border-top: 1px solid #eee;
    font-size: 14px;
}

.transactions-table tr:hover {
    background: #f9fafb;
}

.tx-status {
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
}

.tx-completed {
    background: #dcfce7;
    color: #166534;
}

.tx-pending {
    background: #fef3c7;
    color: #92400e;
}

.tx-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.tx-refunded {
    background: #dbeafe;
    color: #1e40af;
}

.pagination {
    margin-top: 25px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination button {
    border: none;
    background: #eef2ff;
    color: #1e3a8a;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.pagination button:hover {
    background: #c7d2fe;
}

.active-page {
    background: #2563eb !important;
    color: #fff !important;
}

.money-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.money-filters input,
.money-filters select {
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    min-width: 200px;
    font-size: 14px;
}

.money-filters button {
    border: none;
    background: #2563eb;
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
}

.money-filters button:hover {
    background: #1d4ed8;
}

.export-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.export-buttons button {
    border: none;
    background: #111827;
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
}

.export-buttons button:hover {
    opacity: 0.9;
}

.tx-approved {
    background: #dbeafe;
    color: #1d4ed8;
}

.tx-paid {
    background: #dcfce7;
    color: #166534;
}

.tx-pending {
    background: #fef3c7;
    color: #92400e;
}

.tx-rejected {
    background: #fee2e2;
    color: #991b1b;
}