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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
}

header {
    background: linear-gradient(135deg, #006CFF 0%, #0052CC 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.logo img {
    height: 45px;
    width: auto;
    margin-right: 10px;
}

@media (max-width: 768px) {
    .logo img {
        height: 32px;
        margin-right: 8px;
    }
    
    header:not(.admin-header) .container {
        flex-direction: column;
        align-items: center;
        padding: 15px 10px;
    }
    
    header:not(.admin-header) nav {
        width: 100%;
        margin-top: 15px;
    }
    
    header:not(.admin-header) nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        padding: 0;
        justify-content: center;
    }
    
    header:not(.admin-header) nav li {
        padding: 0;
        border-bottom: none;
    }
    
    header:not(.admin-header) nav a {
        display: inline-block;
        width: auto;
        padding: 8px 15px;
        font-size: 14px;
        background: rgba(255,255,255,0.1);
        border-radius: 5px;
        transition: all 0.3s;
    }
    
    header:not(.admin-header) nav a:hover {
        background: rgba(255,255,255,0.2);
        opacity: 1;
    }
    
    .admin-header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    
    .admin-header .logo {
        flex: 1;
    }
    
    .admin-header .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 24px;
        cursor: pointer;
        padding: 10px;
        z-index: 1001;
    }
    
    .admin-header nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #006CFF 0%, #0052CC 100%);
        padding: 15px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        z-index: 1000;
        display: none;
    }
    
    .admin-header nav.active {
        display: block;
    }
    
    .admin-header nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
        margin: 0;
    }
    
    .admin-header nav li {
        padding: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .admin-header nav li:last-child {
        border-bottom: none;
    }
    
    .admin-header nav a {
        display: block;
        padding: 15px 10px;
        font-size: 16px;
        width: 100%;
        text-align: left;
    }
    
    .admin-header nav a:hover {
        background: rgba(255,255,255,0.1);
        opacity: 1;
    }
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav li {
    position: relative;
    padding-top: 15px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.8;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.main-content {
    padding: 30px 0;
    min-height: calc(100vh - 200px);
}

.card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .card {
        padding: 20px;
    }
}

h1, h2, h3 {
    color: #333;
    margin-bottom: 20px;
}

h1 {
    font-size: 28px;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 20px;
}

@media (max-width: 768px) {
    h1 {
        font-size: 24px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    h3 {
        font-size: 18px;
    }
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
    -webkit-appearance: none;
    appearance: none;
}

@media (max-width: 768px) {
    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="tel"],
    input[type="date"],
    input[type="time"],
    input[type="number"],
    select,
    textarea {
        padding: 14px;
        font-size: 16px;
    }
    
    select {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
        padding-right: 36px;
    }
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #006CFF;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #006CFF 0%, #0052CC 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 108, 255, 0.4);
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

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

.btn-warning {
    background: #ffc107;
    color: #333;
}

.btn-warning:hover {
    background: #e0a800;
}

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-info:hover {
    background: #138496;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .btn {
        width: 100%;
        margin-bottom: 10px;
        padding: 14px 24px;
        font-size: 16px;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .btn-sm {
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
        min-height: 44px;
    }
    
    .filter-form .btn {
        flex: 1;
        min-width: 120px;
    }
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
}

@media (max-width: 768px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }
    
    thead {
        display: none;
    }
    
    tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 15px;
        background: white;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }
    
    td {
        border: none;
        padding: 8px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }
    
    td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #555;
        flex-shrink: 0;
        margin-right: 10px;
    }
    
    td .actions {
        width: 100%;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #eee;
    }
    
    td .actions form {
        display: block;
        margin-bottom: 8px;
    }
    
    td .actions button,
    td .actions select {
        width: 100%;
        margin-bottom: 8px;
    }
    
    td .badge {
        flex-shrink: 0;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #006CFF;
    margin-bottom: 10px;
}

.stat-label {
    color: #666;
    font-size: 14px;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 32px;
        margin-bottom: 8px;
    }
    
    .stat-label {
        font-size: 14px;
    }
}

.filter-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 5px;
}

.filter-form input,
.filter-form select {
    flex: 1;
    min-width: 200px;
}

@media (max-width: 768px) {
    .filter-form {
        flex-direction: column;
    }
    
    .filter-form input,
    .filter-form select {
        width: 100%;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 20px;
        max-height: 85vh;
        border-radius: 12px;
    }
    
    .modal-content h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .modal-content .form-group {
        margin-bottom: 15px;
    }
    
    .modal-content label {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .modal-content input,
    .modal-content select,
    .modal-content textarea {
        padding: 14px;
        font-size: 16px;
    }
    
    .modal-content textarea {
        min-height: 120px;
    }
    
    .modal-content .btn {
        margin-top: 10px;
        padding: 14px 24px;
        font-size: 16px;
    }
    
    .close {
        right: 15px;
        top: 15px;
        font-size: 32px;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0,0,0,0.05);
        border-radius: 50%;
        line-height: 1;
    }
    
    .close:hover {
        background: rgba(0,0,0,0.1);
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.badge-pending {
    background: #ffc107;
    color: #333;
}

.badge-confirmed {
    background: #17a2b8;
    color: white;
}

.badge-completed {
    background: #28a745;
    color: white;
}

.badge-cancelled {
    background: #dc3545;
    color: white;
}

.notification-badge {
    position: absolute;
    top: -10px;
    right: -2px;
    background: #ff0000;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
}

.notification-badge.large {
    width: 18px;
    height: 18px;
    font-size: 12px;
    top: -12px;
}

.notification-badge.small {
    width: 14px;
    height: 14px;
    font-size: 10px;
    top: -8px;
}

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .actions {
        flex-direction: column;
    }
    
    .actions .btn {
        width: 100%;
    }
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.service-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.service-item:hover {
    border-color: #006CFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.service-item.selected {
    border-color: #006CFF;
    background: #e6f0ff;
}

.service-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.service-name {
    font-weight: 600;
    color: #333;
}

@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.qr-code-container {
    display: inline-block;
    padding: 30px;
    background: linear-gradient(135deg, #006CFF 0%, #0052CC 100%);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 108, 255, 0.3);
}

.qr-code-container img {
    display: block;
    max-width: 200px;
    border-radius: 10px;
    background: white;
    padding: 10px;
}

footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

footer p {
    margin: 0;
    font-size: 14px;
}

@media (max-width: 768px) {
    footer p {
        font-size: 12px;
    }
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.empty-state-text {
    font-size: 16px;
}

@media (max-width: 768px) {
    .empty-state {
        padding: 30px 20px;
    }
    
    .empty-state-icon {
        font-size: 40px;
        margin-bottom: 12px;
    }
    
    .empty-state-text {
        font-size: 14px;
    }
}

.admin-login-section {
    background: linear-gradient(135deg, #006CFF 0%, #0052CC 100%);
    padding: 40px 0;
    margin-bottom: 30px;
}

.admin-login-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    max-width: 400px;
    margin: 0 auto;
}

.admin-login-card h1 {
    color: #006CFF;
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
}

.admin-login-card .form-group {
    margin-bottom: 25px;
}

.admin-login-card label {
    color: #555;
    font-weight: 600;
    margin-bottom: 10px;
}

.admin-login-card input {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
}

.admin-login-card input:focus {
    border-color: #006CFF;
    box-shadow: 0 0 0 3px rgba(0, 108, 255, 0.1);
}

.admin-login-card .btn-primary {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .admin-login-card {
        padding: 30px 20px;
        margin: 0 10px;
    }
    
    .admin-login-card h1 {
        font-size: 24px;
    }
}
