* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f4f6f9;
    color: #333;
}

/* --- Top Header --- */
.top-header {
    background-color: #0f172a;
    color: #cbd5e1;
    font-size: 0.85rem;
    padding: 8px 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1e293b;
}

.top-header-info {
    display: flex;
    gap: 20px;
}

.top-header-actions {
    display: flex;
    gap: 10px;
}

.btn-login {
    padding: 5px 14px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-customer {
    background-color: #00bcd4;
    color: #fff;
}

.btn-customer:hover {
    background-color: #0097a7;
}

.btn-admin {
    background-color: #e11d48;
    color: #fff;
}

.btn-admin:hover {
    background-color: #be123c;
}

/* --- Main Navigation Header --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1a252f;
    padding: 1rem 2rem;
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00bcd4;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #00bcd4;
}

/* --- Image Slider --- */
.slider-container {
    position: relative;
    max-width: 100%;
    height: 420px;
    overflow: hidden;
    margin: 0 auto;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.slide {
    display: none;
    position: relative;
    width: 100%;
    height: 100%;
}

.slide.active {
    display: block;
    animation: fade 1s ease-in-out;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 30px;
    left: 50px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 15px 25px;
    border-radius: 6px;
    max-width: 500px;
}

.slide-caption h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: #00bcd4;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.4);
    border: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 188, 212, 0.8);
}

.dots-container {
    text-align: center;
    position: absolute;
    bottom: 15px;
    width: 100%;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.dot.active-dot, .dot:hover {
    background-color: #00bcd4;
}

@keyframes fade {
    from { opacity: 0.4; } 
    to { opacity: 1; }
}

/* --- Content Section --- */
.main-content {
    flex: 1;
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

.main-content h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #1a252f;
}

.main-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
}

/* --- Footer --- */
footer {
    background-color: #1a252f;
    color: #fff;
    padding: 20px;
    text-align: center;
    margin-top: auto;
}

footer p {
    font-size: 0.95rem;
    color: #aaa;
}

/* --- Modals --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
}

.modal-content {
    background-color: #fff;
    margin: 8% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
}

.close-btn {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #888;
}

.close-btn:hover {
    color: #000;
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #1a252f;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95rem;
}

.btn-submit {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 10px;
}

/* --- Dashboard Layout --- */
.dashboard-wrapper {
    display: flex;
    min-height: calc(100vh - 120px);
    background-color: #f8fafc;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: #0f172a;
    color: #f8fafc;
    padding: 30px 20px;
    flex-shrink: 0;
}

.sidebar-user {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #334155;
    margin-bottom: 20px;
}

.user-avatar {
    width: 60px;
    height: 60px;
    background-color: #00bcd4;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 10px;
}

.sidebar-user h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.role-badge {
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
}

.badge-customer {
    background-color: #0284c7;
    color: #fff;
}

.badge-admin {
    background-color: #e11d48;
    color: #fff;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 8px;
}

.sidebar-menu a {
    color: #94a3b8;
    text-decoration: none;
    display: block;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.sidebar-menu li.active a,
.sidebar-menu a:hover {
    background-color: #1e293b;
    color: #00bcd4;
}

.sidebar-menu a.logout-link:hover {
    background-color: #451a2b;
    color: #f43f5e;
}

/* Main Dashboard Area */
.dashboard-main {
    flex: 1;
    padding: 40px;
}

.dashboard-header {
    margin-bottom: 30px;
}

.dashboard-header h1 {
    font-size: 1.8rem;
    color: #0f172a;
}

.dashboard-header p {
    color: #64748b;
}

/* Stat Cards Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.stat-icon {
    font-size: 2rem;
    padding: 12px;
    border-radius: 8px;
    background-color: #f1f5f9;
}

.stat-info h3 {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: bold;
    color: #0f172a;
    margin-top: 4px;
}

.text-success { color: #16a34a; }

/* Content Cards & Tables */
.content-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.content-card h2 {
    font-size: 1.2rem;
    color: #0f172a;
    margin-bottom: 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
}

.data-table th {
    background-color: #f8fafc;
    color: #475569;
}

.status-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
}

.status-success {
    background-color: #dcfce7;
    color: #15803d;
}

.status-danger {
    background-color: #fee2e2;
    color: #b91c1c;
}

.btn-login {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none; /* Removes hyperlink underline */
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-customer {
    background-color: #00bcd4;
    color: #ffffff;
}

.btn-customer:hover {
    background-color: #0097a7;
}

.btn-admin {
    background-color: #e11d48;
    color: #ffffff;
}

.btn-admin:hover {
    background-color: #be123c;
}

/* --- Centered Login Layout --- */
.login-wrapper {
    display: flex;
    justify-content: center; /* Horizontally center */
    align-items: center;     /* Vertically center */
    min-height: 80vh;        /* Takes full height minus header/footer space */
    padding: 40px 20px;
    background-color: #f1f5f9;
}

.login-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 40px;
    width: 100%;
    max-width: 440px;        /* Keeps form compact and readable */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    margin: 0 auto;          /* Backup centering alignment */
}

.customer-theme {
    border-top: 5px solid #00bcd4;
}

.admin-theme {
    border-top: 5px solid #e11d48;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.user-badge {
    display: inline-block;
    padding: 4px 12px;
    background-color: #e0f7fa;
    color: #007c91;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.admin-badge {
    background-color: #ffe4e6;
    color: #9f1239;
}

.login-header h2 {
    font-size: 1.8rem;
    color: #1e293b;
    margin-bottom: 6px;
}

.login-header p {
    font-size: 0.9rem;
    color: #64748b;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: #475569;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #00bcd4;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.login-footer {
    margin-top: 25px;
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
}