/* AYANI COIFFURE - Admin Stylesheet */

:root {
    --color-primary: #1a1a1a;
    --color-secondary: #9a5b64;
    --color-gold: #b76e79;
    --color-rose-gold: #b76e79;
    --color-rose-light: #e8c4c4;
    --color-white: #ffffff;
    --color-bg: #fdf8f8;
    --color-gray: #6b6b6b;
    --color-gray-light: #e8e8e8;
    --color-dark: #0d0d0d;

    --color-blue: #3b82f6;
    --color-green: #22c55e;
    --color-purple: #a855f7;
    --color-red: #ef4444;
    --color-orange: #f97316;

    /* Metallic Rose Gold */
    --rose-gold-gradient: linear-gradient(135deg, #e8c4c4 0%, #b76e79 25%, #f4d7d7 50%, #b76e79 75%, #9a5b64 100%);
    --rose-gold-shine: linear-gradient(90deg, #9a5b64 0%, #b76e79 20%, #f4d7d7 40%, #e8c4c4 50%, #f4d7d7 60%, #b76e79 80%, #9a5b64 100%);

    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;

    --shadow-soft: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.08);

    --sidebar-width: 260px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-primary);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

.admin-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--color-primary);
    color: var(--color-white);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text-wrap {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 3px;
}

.logo-sub {
    font-size: 0.55rem;
    font-weight: 500;
    letter-spacing: 2px;
    background: var(--rose-gold-shine);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
    margin-top: 0.15rem;
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.sidebar-nav {
    flex: 1;
    padding: 1.5rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
}

.nav-item.active {
    background: rgba(212, 175, 55, 0.15);
    color: var(--color-gold);
    border-left: 3px solid var(--color-gold);
}

.nav-item svg {
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.back-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--color-gold);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

/* Header */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-light);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-left h1 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.current-date {
    font-size: 0.85rem;
    color: var(--color-gray);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.notification-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.notification-btn .badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 18px;
    height: 18px;
    background: var(--color-red);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-menu span {
    font-weight: 500;
}

.avatar {
    width: 40px;
    height: 40px;
    background: var(--rose-gold-gradient);
    background-size: 200% 200%;
    color: var(--color-white);
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(183, 110, 121, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Views */
.view {
    display: none;
    padding: 2rem;
}

.view.active {
    display: block;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.blue {
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-blue);
}

.stat-icon.green {
    background: rgba(34, 197, 94, 0.1);
    color: var(--color-green);
}

.stat-icon.purple {
    background: rgba(168, 85, 247, 0.1);
    color: var(--color-purple);
}

.stat-icon.gold {
    background: linear-gradient(135deg, rgba(183, 110, 121, 0.15), rgba(232, 196, 196, 0.2));
    color: var(--color-gold);
    box-shadow: 0 0 15px rgba(183, 110, 121, 0.2);
}

.stat-info h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.stat-info p {
    font-size: 0.85rem;
    color: var(--color-gray);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.card {
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-gray-light);
}

.card-header h2 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
}

.see-all {
    font-size: 0.8rem;
    color: var(--color-gold);
    text-decoration: none;
}

.see-all:hover {
    text-decoration: underline;
}

/* Appointments List */
.appointments-list {
    padding: 0.5rem 0;
    max-height: 400px;
    overflow-y: auto;
}

.appointment-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-gray-light);
    transition: background 0.2s ease;
    cursor: pointer;
}

.appointment-item:last-child {
    border-bottom: none;
}

.appointment-item:hover {
    background: var(--color-bg);
}

.appointment-time {
    width: 70px;
    font-weight: 600;
    font-size: 0.9rem;
}

.appointment-info {
    flex: 1;
}

.appointment-info h4 {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.appointment-info p {
    font-size: 0.8rem;
    color: var(--color-gray);
}

.appointment-stylist {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.appointment-stylist.s1 { background: var(--color-blue); }
.appointment-stylist.s2 { background: var(--color-green); }
.appointment-stylist.s3 { background: var(--color-purple); }

/* Stylist List */
.stylist-list {
    padding: 0.5rem 0;
}

.stylist-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-gray-light);
}

.stylist-item:last-child {
    border-bottom: none;
}

.stylist-avatar {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    color: var(--color-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    overflow: hidden;
}

.stylist-avatar.stylist-avatar-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.stylist-info {
    flex: 1;
}

.stylist-info h4 {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.15rem;
}

.stylist-info p {
    font-size: 0.75rem;
    color: var(--color-gray);
}

.status {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status.available {
    background: rgba(34, 197, 94, 0.1);
    color: var(--color-green);
}

.status.busy {
    background: rgba(249, 115, 22, 0.1);
    color: var(--color-orange);
}

/* Calendar View */
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.calendar-header h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    min-width: 200px;
    text-align: center;
}

.calendar-nav {
    width: 40px;
    height: 40px;
    background: var(--color-white);
    border: 1px solid var(--color-gray-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-nav:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.calendar-filters {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    cursor: pointer;
}

.color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.calendar-grid {
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--color-primary);
    color: var(--color-white);
}

.calendar-weekdays span {
    padding: 1rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-day {
    min-height: 100px;
    padding: 0.5rem;
    border: 1px solid var(--color-gray-light);
    cursor: pointer;
    transition: background 0.2s ease;
}

.calendar-day:hover {
    background: var(--color-bg);
}

.calendar-day.other-month {
    background: #fafafa;
    color: #ccc;
}

.calendar-day.today {
    background: rgba(212, 175, 55, 0.1);
}

.calendar-day .day-number {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.calendar-day.today .day-number {
    color: var(--color-gold);
}

.calendar-event {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    margin-bottom: 0.25rem;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-event.s1 { background: var(--color-blue); }
.calendar-event.s2 { background: var(--color-green); }
.calendar-event.s3 { background: var(--color-purple); }

/* Bookings View */
.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--color-white);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    min-width: 300px;
}

.search-box svg {
    color: var(--color-gray);
}

.search-box input {
    border: none;
    outline: none;
    flex: 1;
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.view-filters {
    display: flex;
    gap: 1rem;
}

.view-filters select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-gray-light);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    background: var(--color-white);
    cursor: pointer;
}

.bookings-table {
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.bookings-table table {
    width: 100%;
    border-collapse: collapse;
}

.bookings-table th,
.bookings-table td {
    padding: 1rem 1.5rem;
    text-align: left;
}

.bookings-table th {
    background: var(--color-bg);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-gray);
}

.bookings-table tr {
    border-bottom: 1px solid var(--color-gray-light);
}

.bookings-table tr:last-child {
    border-bottom: none;
}

.bookings-table tr:hover {
    background: #fafafa;
}

.bookings-table .status-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
}

.status-badge.confirmed {
    background: rgba(34, 197, 94, 0.1);
    color: var(--color-green);
}

.status-badge.pending {
    background: rgba(249, 115, 22, 0.1);
    color: var(--color-orange);
}

.status-badge.completed {
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-blue);
}

.status-badge.cancelled {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-red);
}

.action-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--color-gray);
    transition: color 0.2s ease;
}

.action-btn:hover {
    color: var(--color-primary);
}

/* Stylists View */
.stylists-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stylists-grid.stylists-single {
    grid-template-columns: 1fr;
    max-width: 400px;
}

.stylist-card-admin {
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.stylist-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--color-primary);
    color: var(--color-white);
}

.avatar-large {
    width: 60px;
    height: 60px;
    background: var(--color-gold);
    color: var(--color-primary);
    font-size: 1.5rem;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.avatar-large.avatar-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.stylist-meta h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.stylist-meta p {
    font-size: 0.8rem;
    opacity: 0.8;
}

.stylist-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--color-gray-light);
}

.stylist-stat {
    padding: 1.25rem;
    text-align: center;
    background: var(--color-white);
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    background: var(--rose-gold-shine);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
    display: block;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--color-gray);
}

.stylist-schedule {
    padding: 1.5rem;
}

.stylist-schedule h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-gray);
}

.schedule-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-gray-light);
}

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

/* Services View */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.service-category h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.services-table {
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.services-table table {
    width: 100%;
    border-collapse: collapse;
}

.services-table th,
.services-table td {
    padding: 1rem 1.5rem;
    text-align: left;
}

.services-table th {
    background: var(--color-bg);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-gray);
}

.services-table tr {
    border-bottom: 1px solid var(--color-gray-light);
}

.services-table tr:last-child {
    border-bottom: none;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--color-white);
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-gray);
}

.modal-close:hover {
    color: var(--color-primary);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-gray-light);
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
}

.modal-body {
    padding: 1.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-gray-light);
}

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

.detail-row span:first-child {
    color: var(--color-gray);
}

.detail-row span:last-child {
    font-weight: 500;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--color-gray-light);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--rose-gold-gradient);
    background-size: 200% 200%;
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(183, 110, 121, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    background-position: 100% 100%;
    box-shadow: 0 6px 20px rgba(183, 110, 121, 0.5);
    color: var(--color-white);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: var(--color-gray-light);
    color: var(--color-primary);
}

.btn-secondary:hover {
    background: #ddd;
}

.btn-danger {
    background: var(--color-red);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

/* Responsive */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stylists-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

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

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

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

    .view-header {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        min-width: auto;
    }

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

    .bookings-table table {
        min-width: 700px;
    }
}

/* Loyalty Admin Section */
.loyalty-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.loyalty-stats-mini {
    display: flex;
    gap: 2rem;
}

.mini-stat {
    text-align: center;
    padding: 0.75rem 1.5rem;
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.mini-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    background: var(--rose-gold-shine);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

.mini-label {
    font-size: 0.75rem;
    color: var(--color-gray);
}

.loyalty-clients-table {
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.loyalty-clients-table table {
    width: 100%;
    border-collapse: collapse;
}

.loyalty-clients-table th,
.loyalty-clients-table td {
    padding: 1rem 1.5rem;
    text-align: left;
}

.loyalty-clients-table th {
    background: var(--color-bg);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-gray);
}

.loyalty-clients-table tr {
    border-bottom: 1px solid var(--color-gray-light);
}

.loyalty-clients-table tr:last-child {
    border-bottom: none;
}

.loyalty-clients-table tr:hover {
    background: #fafafa;
}

.loyalty-clients-table .points-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: var(--rose-gold-gradient);
    background-size: 200% 200%;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(183, 110, 121, 0.3);
}

.btn-manage-points {
    padding: 0.5rem 1rem;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-manage-points:hover {
    background: var(--color-gold);
    color: var(--color-primary);
}

/* Loyalty Modal */
#loyalty-modal .modal-content {
    max-width: 600px;
}

.loyalty-client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-bg);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.loyalty-client-info .client-avatar {
    width: 50px;
    height: 50px;
    background: var(--rose-gold-gradient);
    color: white;
    font-weight: 600;
    font-size: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.loyalty-client-info .client-details {
    flex: 1;
}

.loyalty-client-info .client-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.loyalty-client-info .client-id {
    font-size: 0.8rem;
    color: var(--color-gray);
}

.loyalty-client-info .client-points-display {
    text-align: center;
}

.loyalty-client-info .current-points {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    background: var(--rose-gold-shine);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

.loyalty-client-info .points-label {
    font-size: 0.75rem;
    color: var(--color-gray);
}

.points-actions {
    margin-bottom: 1.5rem;
}

.points-action-group {
    margin-bottom: 1rem;
}

.points-action-group h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-gray);
}

.points-input-row {
    display: flex;
    gap: 0.75rem;
}

.points-input-row input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-gray-light);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.85rem;
}

.points-input-row input:focus {
    outline: none;
    border-color: var(--color-gold);
}

.points-input-row input[type="number"] {
    max-width: 120px;
}

.btn-success {
    background: var(--color-green);
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-success:hover {
    background: #16a34a;
}

.btn-danger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.client-history {
    border-top: 1px solid var(--color-gray-light);
    padding-top: 1rem;
}

.client-history h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-gray);
}

.history-list-admin {
    max-height: 200px;
    overflow-y: auto;
}

.history-list-admin .history-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-gray-light);
}

.history-list-admin .history-row:last-child {
    border-bottom: none;
}

.history-list-admin .history-icon-small {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
}

.history-list-admin .history-row.earned .history-icon-small {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.history-list-admin .history-row.redeemed .history-icon-small {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.history-list-admin .history-info {
    flex: 1;
}

.history-list-admin .history-title {
    font-size: 0.85rem;
    font-weight: 500;
}

.history-list-admin .history-date {
    font-size: 0.75rem;
    color: var(--color-gray);
}

.history-list-admin .history-points {
    font-weight: 600;
    font-size: 0.85rem;
}

.history-list-admin .history-row.earned .history-points {
    color: #22c55e;
}

.history-list-admin .history-row.redeemed .history-points {
    color: #ef4444;
}

@media (max-width: 768px) {
    .loyalty-admin-header {
        flex-direction: column;
        align-items: stretch;
    }

    .loyalty-stats-mini {
        justify-content: center;
    }

    .loyalty-clients-table {
        overflow-x: auto;
    }

    .loyalty-clients-table table {
        min-width: 700px;
    }

    .points-input-row {
        flex-wrap: wrap;
    }

    .points-input-row input[type="number"] {
        max-width: none;
    }
}
