body {
    background: #f5f7fb;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #1f2937;
}

.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fb 0%, #e9eef8 100%);
}

.app-wrapper {
    min-height: 100vh;
}

.sidebar {
    min-height: 100vh;
    background: #ffffff;
    border-right: 1px solid #e9ecef;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color: #ff0f8a;
}

.sidebar a {
    display: block;
    padding: 10px 12px;
    margin-bottom: 5px;
    text-decoration: none;
    color: #444;
    border-radius: 8px;
    transition: 0.2s;
}

/* HOVER */
.sidebar a:hover {
    background: #ffe3f1;
    color: #ff0f8a;
}

/* ACTIVE */
.sidebar a.active {
    background: #ffd1ea;
    color: #ff0f8a;
    font-weight: 600;
}

.card-box {
    background: #ffffff;
    border: 1px solid #edf0f3;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.chart-box {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
}

.stat-number {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    margin-top: 0.4rem;
    color: #6c757d;
}

#calendar {
    min-height: 700px;
}

body.dark {
    background: #111827;
    color: #f3f4f6;
}

body.dark .sidebar,
body.dark .card-box,
body.dark .modal-content,
body.dark .card,
body.dark .form-control,
body.dark .form-select {
    background: #1f2937;
    color: #f3f4f6;
    border-color: #374151;
}

body.dark .sidebar a {
    color: #d1d5db;
}

body.dark .sidebar a:hover,
body.dark .sidebar a.active {
    color: #ffffff;
}

body.dark .text-muted,
body.dark .stat-label {
    color: #9ca3af !important;
}

/* =========================
   ADMIN LAYOUT
========================= */

.dashboard-salon-logo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
}

.dashboard-salon-name {
    font-weight: 600;
    color: var(--text-color, #222);
}

.admin-sidebar-wrap {
    min-height: 100vh;
}

.admin-sidebar {
    min-height: 100vh;
    background: #ffffff;
    border-right: 1px solid #ececec;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.admin-sidebar-top {
    padding: 22px 18px 10px 18px;
    border-bottom: 1px solid #f1f1f1;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.admin-logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ff0f8a, #ff6ec7);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
}

.admin-logo-text {
    font-size: 22px;
    font-weight: 700;
    color: #1f1f1f;
}

.admin-salon-name {
    font-size: 14px;
    color: #6d6d6d;
}

.admin-sidebar-nav {
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 12px;
    color: #444;
    text-decoration: none;
    transition: 0.2s ease;
    font-size: 15px;
}

.sidebar-link i {
    font-size: 16px;
}

.sidebar-link:hover {
    background: #fff0f8;
    color: #ff0f8a;
}

.sidebar-link.active {
    background: #ffd6ec;
    color: #ff0f8a;
    font-weight: 600;
}

.admin-sidebar-bottom {
    padding: 14px 12px 18px 12px;
    border-top: 1px solid #f1f1f1;
}

.sidebar-link-logout:hover {
    background: #fff3f3;
    color: #d93025;
}

.admin-content {
    background: #cab9d5; /*#f7f7f9;*/
    min-height: 100vh;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e1e1e;
}

.page-subtitle {
    color: #4e4e4e; /*#767676;*/
    font-size: 14px;
}

.card-box {
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(18, 18, 18, 0.04);
}

.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #fff0f8;
    color: #ff0f8a;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 18px;
}

.stat-number {
    font-size: 30px;
    font-weight: 700;
    color: #171717;
    line-height: 1.1;
}

.stat-label {
    margin-top: 6px;
    color: #7a7a7a;
    font-size: 14px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f1f1f;
}

.section-subtitle {
    font-size: 13px;
    color: #888;
}

.chart-box {
    position: relative;
    width: 100%;
    height: 340px;
    overflow: hidden;
}

.pill-badge {
    min-width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #fff0f8;
    color: #ff0f8a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    padding: 0 12px;
}

.quick-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-info-item {
    padding: 12px 14px;
    border: 1px solid #efefef;
    border-radius: 14px;
    background: #fcfcfc;
}

.quick-info-title {
    font-size: 13px;
    color: #7d7d7d;
    margin-bottom: 4px;
}

.quick-info-value {
    font-size: 15px;
    font-weight: 600;
    color: #202020;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    border: 1px solid #efefef;
    border-radius: 14px;
    padding: 14px;
    background: #fcfcfc;
}

.activity-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.activity-source {
    font-size: 12px;
    color: #7f7f7f;
    background: #f1f1f1;
    border-radius: 999px;
    padding: 3px 8px;
}

.activity-description {
    color: #333;
    font-size: 14px;
    margin-bottom: 6px;
}

.activity-date {
    color: #8a8a8a;
    font-size: 12px;
}

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

.shortcut-card {
    border: 1px solid #efefef;
    background: #fcfcfc;
    border-radius: 16px;
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #222;
    transition: 0.2s ease;
}

.shortcut-card i {
    font-size: 20px;
    color: #ff0f8a;
}

.shortcut-card span {
    font-size: 14px;
    font-weight: 600;
}

.shortcut-card:hover {
    background: #fff0f8;
    border-color: #ffd6ec;
    color: #111;
}

.empty-box,
.placeholder-box {
    border: 1px dashed #d9d9d9;
    border-radius: 16px;
    padding: 24px;
    background: #fcfcfc;
    color: #666;
}

.btn-theme {
    background: #ff0f8a;
    color: #fff;
    border: 1px solid #ff0f8a;
    border-radius: 12px;
    padding: 10px 16px;
}

.btn-theme:hover {
    background: #e50079;
    border-color: #e50079;
    color: #fff;
}

.btn-outline-theme {
    background: #fff;
    color: #ff0f8a;
    border: 1px solid #ffd0e8;
    border-radius: 12px;
}

.btn-outline-theme:hover {
    background: #fff0f8;
    color: #ff0f8a;
    border-color: #ffb7dc;
}

/* =========================
   REPORTS PAGE
========================= */

.report-filter-form {
    margin: 0;
}

.report-select {
    min-width: 150px;
    border-radius: 10px;
}

.report-period-note {
    font-size: 14px;
    color: #666;
}

.report-stat-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 120px;
}

.report-stat-title {
    font-size: 13px;
    color: #7a7a7a;
    margin-bottom: 10px;
}

.report-stat-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
    color: #171717;
    word-break: break-word;
}

.top-service-box {
    background: #fcfcfc;
    border: 1px solid #efefef;
    border-radius: 16px;
    padding: 18px;
}

.top-service-name {
    font-size: 22px;
    font-weight: 700;
    color: #1f1f1f;
    margin-bottom: 8px;
}

.top-service-count {
    font-size: 14px;
    color: #777;
}

.mini-stats-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mini-stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f1f1;
    font-size: 14px;
    color: #555;
}

.mini-stats-row:last-child {
    border-bottom: none;
}

.chart-box-sm {
    height: 300px;
}

.report-table thead th {
    font-size: 13px;
    color: #777;
    font-weight: 600;
    border-bottom-width: 1px;
}

.report-table tbody td {
    vertical-align: middle;
    font-size: 14px;
}

#newClientFormBox {
    background: #fafafa;
}

/*--------------------------------*/
.sidebar a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.sidebar-link-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-badge {
    color: #fff;
    font-size: 11px;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 999px;
    white-space: nowrap;
}

.sidebar-badge-expiring {
    background: #fd7e14; /* narandžasta */
}

.sidebar-badge-expired {
    background: #dc3545; /* crvena */
}



/* =========================
   RESPONSIVE
========================= */

@media (max-width: 991.98px) {
    .admin-sidebar {
        min-height: auto;
    }

    .admin-content {
        min-height: auto;
    }
}

@media (max-width: 767.98px) {
    .page-title {
        font-size: 24px;
    }

    .chart-box {
        height: 280px;
    }

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