/* css/style.css */
/* Global border-box reset - several container classes below combine a
   percentage/fixed width with padding, which under the browser default
   (content-box) adds the padding on top of that width instead of inside it.
   That's the main cause of pages overflowing horizontally on narrow (phone)
   screens. border-box can only ever make an element's rendered size equal
   to or smaller than content-box would - never larger - so this is a
   strictly safe fix with no risk of introducing new overflow anywhere. */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background-color: #2b2b2b; /* Dark charcoal grey */
    color: #ffffff; /* White text */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-container {
    text-align: center;
    background-color: #383838;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5);
}

.brand-logo {
    max-width: 300px;
    margin-bottom: 30px;
}

.pin-input {
    font-size: 24px;
    padding: 12px;
    width: 200px;
    text-align: center;
    border: 2px solid #ff7700; /* Splash Orange */
    border-radius: 5px;
    background-color: #2b2b2b;
    color: #ffffff;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 5px;
}

.pin-input:focus {
    outline: none;
    box-shadow: 0 0 10px #ff7700;
}

.login-btn {
    background-color: #ff7700; /* Splash Orange */
    color: #ffffff;
    border: none;
    padding: 12px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-btn:hover {
    background-color: #e06600; /* Slightly darker orange on hover */
}
/* Dashboard Styles */
.dashboard-container {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    background-color: #383838;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5);
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ff7700;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.dash-header h2 {
    margin: 0;
    font-size: 28px;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.dash-btn {
    background-color: #ff7700;
    color: #ffffff;
    border: none;
    padding: 25px 20px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    text-align: center;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dash-btn:hover {
    background-color: #e06600;
    transform: translateY(-2px);
    box-shadow: 0px 4px 10px rgba(255, 119, 0, 0.3);
}

.logout-link {
    color: #ffffff;
    background-color: #d9534f;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.logout-link:hover {
    background-color: #c9302c;
}
/* Form Styles for Admin Pages */
.form-container {
    background-color: #383838;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #ff7700;
}

.form-input, .form-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #555;
    border-radius: 5px;
    background-color: #2b2b2b;
    color: #ffffff;
    font-size: 16px;
    box-sizing: border-box;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: #ff7700;
}

.btn-submit {
    background-color: #ff7700;
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #e06600;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}
.alert-success { background-color: #4CAF50; color: white; }
.alert-danger { background-color: #f44336; color: white; }
/* Data Table Styles */
.table-container {
    background-color: #383838;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 1000px;
    margin: 40px auto;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    color: #ffffff;
}

.data-table th, .data-table td {
    padding: 15px;
    border-bottom: 1px solid #555;
    text-align: left;
}

.data-table th {
    background-color: #ff7700;
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
}

.data-table tr:hover {
    background-color: #444;
}

.table-input {
    width: 100px;
    padding: 8px;
    background-color: #2b2b2b;
    border: 1px solid #777;
    color: #fff;
    border-radius: 4px;
}

.table-input:focus {
    outline: none;
    border-color: #ff7700;
}

.btn-small {
    background-color: #ff7700;
    color: #ffffff;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.btn-small:hover {
    background-color: #e06600;
}
/* Ticket Styles for Staff & Reception */
.ticket-card {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    color: #fff;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.3);
}

.ticket-blue {
    background-color: #005f99; /* Barber/Hair Blue */
    border-left: 5px solid #00aaff;
}

.ticket-orange {
    background-color: #b35900; /* Beautician Orange */
    border-left: 5px solid #ff7700;
}

.service-checkbox-list {
    background-color: #2b2b2b;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #555;
    max-height: 300px;
    overflow-y: auto;
}

.checkbox-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #444;
}

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

.checkbox-item label {
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}
/* Ticket Styles for Staff & Reception */
.ticket-card {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    color: #fff;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.3);
}

.ticket-blue {
    background-color: #005f99; /* Barber/Hair Blue */
    border-left: 5px solid #00aaff;
}

.ticket-orange {
    background-color: #b35900; /* Beautician Orange */
    border-left: 5px solid #ff7700;
}

/* We also need this for the Reception Desk */
.checkout-btn {
    display: block;
    text-align: center;
    background-color: #2b2b2b;
    color: #fff;
    text-decoration: none;
    padding: 10px;
    border-radius: 5px;
    margin-top: 15px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.checkout-btn:hover {
    background-color: #fff;
    color: #000;
}