:root {
    --primary-color: #3498db;
    --primary-light: #85c1e9;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.4);
    --text-color: #2c3e50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Sarabun', sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(180deg, #d6eaf8 0%, #ebf5fb 50%, #ffffff 100%);
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
}

.centered-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px 20px;
}

.container {
    width: 100%;
    max-width: 550px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.shop-card-header {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.form-label {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #444;
}

/* Stylized Radio Ratings */
.modern-rating {
    display: flex;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.3);
    padding: 10px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modern-rating input[type="radio"] {
    display: none;
}

.modern-rating label {
    cursor: pointer;
    font-size: 24px;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: 0.3s;
    background: transparent;
    margin: 0;
}

.modern-rating input[type="radio"]:checked + label {
    background: var(--primary-color);
    color: white;
    transform: scale(1.2);
    box-shadow: 0 5px 15px rgba(255, 127, 80, 0.4);
}

.modern-rating label:hover {
    background: rgba(255, 127, 80, 0.2);
}

.input-box {
    background: rgba(255, 255, 255, 0.5) !important;
    border: 2px solid transparent !important;
    border-radius: 15px !important;
    padding: 15px !important;
    font-size: 16px !important;
}

.input-box:focus {
    border-color: var(--primary-color) !important;
    background: white !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

h1, h2 {
    color: var(--text-color);
    text-align: center;
    margin-bottom: 20px;
}

.shop-info {
    text-align: center;
    margin-bottom: 30px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 15px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-color);
}

input[type="text"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.5);
    outline: none;
    font-size: 16px;
    transition: 0.3s;
}

input:focus, select:focus, textarea:focus {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--primary-color);
}

.rating-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.rating-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: var(--primary-color);
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.btn-submit:hover {
    background: #e67348;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 127, 80, 0.4);
}

.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.alert-success {
    background: rgba(76, 175, 80, 0.3);
    color: #2e7d32;
    border: 1px solid rgba(76, 175, 80, 0.5);
}

.alert-error {
    background: rgba(244, 67, 54, 0.3);
    color: #c62828;
    border: 1px solid rgba(244, 67, 54, 0.5);
}

/* Admin Layout */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: fixed;
    height: 100vh;
    z-index: 2000;
    transition: 0.3s;
}

.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 40px;
    width: calc(100% - 280px);
    transition: 0.3s;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .sidebar {
        width: 80px;
        padding: 30px 10px;
    }
    .sidebar h2, .sidebar span, .sidebar p {
        display: none;
    }
    .nav-link {
        justify-content: center;
        padding: 15px 0;
    }
    .main-content {
        margin-left: 80px;
        width: calc(100% - 80px);
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .admin-layout {
        flex-direction: column;
    }
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        padding: 15px;
        flex-direction: row;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }
    .sidebar h2 { display: none; }
    .nav-link {
        white-space: nowrap;
        padding: 10px 15px;
    }
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 25px;
}

@media (max-width: 500px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

.nav-link {
    padding: 15px 20px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-color);
    transition: 0.3s;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link:hover, .nav-link.active {
    background: var(--primary-color);
    color: white;
}

.content-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.05);
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

th {
    background: rgba(255,255,255,0.3);
    color: var(--primary-color);
}
