/* /assets/style.css */

:root {
    --primary-color: #007bff;
    --primary-dark: #0056b3;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --background-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #333333;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    width: 95%;
    margin: 0 auto;
    padding: 0 15px;
}

.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
}

h1,
h2,
h3 {
    margin-top: 0;
    color: var(--primary-dark);
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
input[type="time"],
input[type="tel"],
input[type="url"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
    /* Important for padding */
    background: #fff;
    color: #333;
    font-family: inherit;
    -webkit-appearance: none;
    /* Modern reset */
    appearance: none;
}

/* Add custom arrow for select if appearance:none is used, but keeping simple for now. */
/* Just ensuring dates look good */
/* Just ensuring dates look good */
input[type="date"],
input[type="datetime-local"],
input[type="time"] {
    cursor: pointer;
    position: relative;
    padding-right: 10px;
    /* Reduced padding as appearance:none handles it usually */
    min-height: 45px;
    /* Ensure touch target size */
    font-family: inherit;
    display: block;
}

/* Fix for Webkit Date Icon alignment/visibility if desired, or keep default */
::-webkit-calendar-picker-indicator {
    background-color: transparent;
    cursor: pointer;
    padding: 5px;
    opacity: 0.6;
    transition: opacity 0.3s;
}

::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Webkit calendar picker indicator tweak if needed, but default is usually okay if padded */

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    /* Subtle glow */
    outline: none;
}

button {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Star Rating */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 10px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 30px;
    color: #ddd;
    cursor: pointer;
    margin: 0;
}

.star-rating input:checked~label {
    color: #ffd700;
}

@media (hover: hover) {

    .star-rating label:hover,
    .star-rating label:hover~label {
        color: #ffd700;
    }
}

/* Admin Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

th,
td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: var(--primary-color);
    color: white;
}

tr:hover {
    background-color: #f1f1f1;
}

/* Minimal Header Styles */
.main-header {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    /* Very subtle shadow */
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 20px;
    height: 70px;
    /* Fixed height for consistency */
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    /* Added spacing */
}

.header-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Brand */
.brand a {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.5px;
}

/* Navigation - Desktop */
.main-nav {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: flex-end;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 25px;
}

.main-nav li a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    padding: 8px 0;
    position: relative;
    transition: color 0.2s;
}

.main-nav li a:hover,
.main-nav li a.active {
    color: var(--primary-color);
}

.main-nav li a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* User Action */
.user-action {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 40px;
    padding-left: 20px;
    border-left: 1px solid #eee;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.btn-logout-icon {
    text-decoration: none;
    color: #999;
    font-size: 18px;
    transition: color 0.2s;
}

.btn-logout-icon:hover {
    color: #dc3545;
}

/* Hamburger & Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background: #333;
    transition: all 0.3s;
}

@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 20px;
        box-sizing: border-box;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        border-top: 1px solid #eee;
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0;
    }

    .main-nav ul li {
        width: 100%;
        border-bottom: 1px solid #f9f9f9;
    }

    .main-nav li a {
        display: block;
        padding: 15px 0;
        font-size: 16px;
    }

    .user-action {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: 20px;
        width: 100%;
        justify-content: space-between;
    }

    /* Hamburger Animation */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 0 10px;
    }

    .card {
        padding: 20px;
    }
}

/* Messages */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}