* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #000;
    min-height: 100vh;
    color: #fff;
}

.dashboard {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: #1a1a1a;
    color: #fff;
    padding: 20px;
    position: fixed;
    height: 100%;
    transition: transform 0.3s ease;
}

.sidebar h2 {
    margin-bottom: 30px;
    font-size: 24px;
    transition: transform 0.3s ease;
}

.sidebar h2:hover {
    transform: scale(1.05);
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin: 20px 0;
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.sidebar li:hover, .sidebar li.active {
    background: #333;
    transform: translateX(5px);
}

.sidebar a {
    color: #fff;
    text-decoration: none;
    display: block;
}

/* Main Content */
.main-content {
    margin-left: 250px;
    flex: 1;
    padding: 30px;
}

.header {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    transition: box-shadow 0.3s ease;
}

.header:hover {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.header h1 {
    color: #fff;
    font-size: 28px;
}

/* Booking Section */
.booking-section {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.day {
    padding: 15px;
    text-align: center;
    border-radius: 5px;
    background: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.day:hover, .day.selected {
    background: #fff;
    color: #000;
    transform: scale(1.05);
}

.booking-form, .add-client-form, .add-artist-form, .settings-form {
    max-width: 500px;
    margin: 20px 0;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

input, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #666;
    border-radius: 5px;
    font-size: 14px;
    background: #222;
    color: #fff;
    transition: border-color 0.3s ease;
}

input:hover, select:hover {
    border-color: #fff;
}

button {
    background: #fff;
    color: #000;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

button:hover {
    background: #ccc;
    transform: translateY(-2px);
}

.bookings-list {
    margin-top: 30px;
}

.booking-item {
    background: #333;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.booking-item:hover {
    background: #444;
    transform: translateX(5px);
}

/* Notification Styles */
.notification {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    text-align: center;
    animation: fadeIn 0.3s ease;
    width: 90%;
    max-width: 400px;
}

.notification p {
    margin-bottom: 15px;
    font-size: 16px;
}

.notification button {
    padding: 8px 15px;
    width: auto;
}

/* Table Styles (Bookings, Clients, Artists) */
.bookings-table, .clients-table, .artists-table {
    width: 100%;
}

.bookings-table .table-header,
.bookings-table .table-row {
    grid-template-columns: repeat(7, 1fr) 150px;
}

.artists-table .table-header,
.artists-table .table-row {
    grid-template-columns: 1fr 1fr 1fr 2fr 1fr 150px; /* Adjusted for availability */
}

.table-header {
    display: grid;
    grid-template-columns: repeat(5, 1fr) 150px;
    padding: 15px;
    background: #333;
    border-radius: 5px 5px 0 0;
    font-weight: bold;
}

.table-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr) 150px;
    padding: 15px;
    background: #222;
    border-bottom: 1px solid #333;
    transition: all 0.3s ease;
}

.table-row:hover {
    background: #2a2a2a;
    transform: translateX(5px);
}

.table-row span {
    padding: 0 10px;
}

.action-btn {
    background: #fff;
    color: #000;
    padding: 5px 10px;
    margin: 0 5px;
    font-size: 12px;
    border-radius: 5px;
}

.delete-btn {
    background: #ff4444;
    color: #fff;
}

.delete-btn:hover {
    background: #cc3333;
}

/* Settings Specific Styles */
.settings-actions {
    margin-top: 30px;
}

.settings-actions .warning {
    color: #ff4444;
    font-size: 14px;
    margin-top: 10px;
}

/* Analytics Styles */
.analytics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.analytic-item {
    background: #333;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    transition: all 0.3s ease;
}

.analytic-item:hover {
    background: #444;
    transform: scale(1.05);
}

.analytic-item h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.analytic-item p {
    font-size: 24px;
    font-weight: bold;
}

/* Availability Styles */
.availability-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.availability-options label {
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
}

.availability-options input[type="checkbox"] {
    width: auto;
    margin-right: 5px;
}

.availability-options select {
    width: auto;
    display: inline-block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Sidebar */
    .sidebar {
        width: 200px;
        transform: translateX(-200px); /* Hidden by default on mobile */
        z-index: 10;
    }

    .sidebar.active {
        transform: translateX(0); /* Show when toggled */
    }

    .sidebar h2 {
        font-size: 20px;
    }

    .sidebar li {
        margin: 15px 0;
        padding: 8px;
    }

    /* Main Content */
    .main-content {
        margin-left: 0; /* Full width when sidebar is hidden */
        padding: 20px;
    }

    .header {
        padding: 15px;
    }

    .header h1 {
        font-size: 24px;
    }

    /* Booking Section */
    .booking-section {
        padding: 15px;
    }

    .calendar {
        grid-template-columns: repeat(3, 1fr);
    }

    .day {
        padding: 10px;
        font-size: 14px;
    }

    .booking-form, .add-client-form, .add-artist-form, .settings-form {
        max-width: 100%;
    }

    .form-group {
        margin-bottom: 15px;
    }

    label {
        font-size: 14px;
    }

    input, select {
        font-size: 12px;
        padding: 8px;
    }

    button {
        padding: 10px 15px;
        font-size: 14px;
    }

    .bookings-list {
        margin-top: 20px;
    }

    .booking-item {
        padding: 10px;
        font-size: 14px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    /* Notification */
    .notification {
        padding: 15px;
        width: 80%;
    }

    .notification p {
        font-size: 14px;
    }

    .notification button {
        padding: 6px 12px;
        font-size: 12px;
    }

    /* Tables */
    .bookings-table .table-header,
    .bookings-table .table-row {
        grid-template-columns: 1fr 1fr; /* Show only Client and Artist */
    }

    .artists-table .table-header,
    .artists-table .table-row {
        grid-template-columns: 1fr 1fr; /* Show only Name and Specialty */
    }

    .clients-table .table-header,
    .clients-table .table-row {
        grid-template-columns: 1fr 1fr; /* Show only Name and Email */
    }

    .table-header span:nth-child(3),
    .table-header span:nth-child(4),
    .table-header span:nth-child(5),
    .table-header span:nth-child(6),
    .table-header span:nth-child(7),
    .table-header span:nth-child(8),
    .table-row span:nth-child(3),
    .table-row span:nth-child(4),
    .table-row span:nth-child(5),
    .table-row span:nth-child(6),
    .table-row span:nth-child(7),
    .table-row span:nth-child(8) {
        display: none;
    }

    .table-header, .table-row {
        padding: 10px;
    }

    .table-row span {
        padding: 5px;
        font-size: 14px;
    }

    .action-btn {
        padding: 4px 8px;
        font-size: 10px;
        margin: 2px;
    }

    /* Settings */
    .settings-actions {
        margin-top: 20px;
    }

    .settings-actions .warning {
        font-size: 12px;
    }

    /* Analytics */
    .analytics {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .analytic-item {
        padding: 10px;
    }

    .analytic-item h3 {
        font-size: 14px;
    }

    .analytic-item p {
        font-size: 20px;
    }

    /* Availability */
    .availability-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .availability-options label {
        font-size: 14px;
    }

    .availability-options select {
        width: 100%;
    }
}

@media (max-width: 480px) {
    /* Sidebar */
    .sidebar {
        width: 100%;
        height: auto;
        position: fixed;
        top: 0;
        left: 0;
        transform: translateY(-100%);
        padding: 15px;
    }

    .sidebar.active {
        transform: translateY(0);
    }

    .sidebar h2 {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .sidebar li {
        margin: 10px 0;
        padding: 6px;
    }

    .sidebar a {
        font-size: 14px;
    }

    /* Main Content */
    .main-content {
        padding: 15px;
    }

    .header {
        padding: 10px;
    }

    .header h1 {
        font-size: 20px;
    }

    /* Booking Section */
    .booking-section {
        padding: 10px;
    }

    .calendar {
        grid-template-columns: repeat(2, 1fr);
    }

    .day {
        padding: 8px;
        font-size: 12px;
    }

    .booking-item {
        font-size: 12px;
        padding: 8px;
    }

    /* Notification */
    .notification {
        padding: 10px;
        width: 90%;
    }

    .notification p {
        font-size: 12px;
    }

    .notification button {
        padding: 5px 10px;
        font-size: 10px;
    }

    /* Tables */
    .table-header, .table-row {
        grid-template-columns: 1fr; /* Stack all columns */
    }

    .table-row span {
        padding: 8px;
        font-size: 12px;
        border-bottom: 1px solid #333; /* Add separation */
    }

    .table-row span:last-child {
        border-bottom: none;
    }

    .action-btn {
        padding: 3px 6px;
        font-size: 9px;
    }

    /* Analytics */
    .analytics {
        grid-template-columns: 1fr;
    }

    .analytic-item {
        padding: 8px;
    }

    .analytic-item h3 {
        font-size: 12px;
    }

    .analytic-item p {
        font-size: 18px;
    }
}
