/* Global Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f4;
    line-height: 1.6;
    color: #333;
}

/* Container Styles */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.container-order,
.container-booking,
.container-topup,
.edit-profile-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Typography */
.title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #222;
}

h1, h2, h3 {
    color: #333;
    font-weight: 700;
}

/* Navbar */
.navbar {
    background-color: #333;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

.navbar .nav-links {
    display: flex;
    gap: 20px;
}

.navbar a {
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.navbar a:hover {
    background-color: #f1c40f;
    color: #333;
    transform: scale(1.05);
}

.navbar .active {
    background-color: #f1c40f;
    color: #333;
    font-weight: bold;
}

/* Header */
.header {
    background-color: #1a1a1a;
    color: #f1f1f1;
    text-align: center;
    padding: 60px 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.header h1 {
    font-size: 3rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

/* Footer */
.footer {
    background-color: #333;
    color: #f1f1f1;
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}

.footer p {
    font-size: 1rem;
}

/* Card Styles */
.card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 20px;
    text-align: center;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.card-text {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
}

/* Button Styles */
.btn-primary,
.btn-save,
.btn-cancel {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background-color: #f1c40f;
    color: #333;
}

.btn-primary:hover {
    background-color: #e67e22;
    color: #fff;
}

.btn-save {
    background-color: #f1c40f;
    color: #333;
}

.btn-save:hover {
    background-color: #e67e22;
    color: #fff;
}

.btn-cancel {
    background-color: #e74c3c;
    color: white;
}

.btn-cancel:hover {
    background-color: #c0392b;
}

/* Form Elements */
form input[type="text"],
form input[type="password"],
form input[type="email"],
form input[type="number"],
form select,
.edit-profile-form input,
.container-topup input,
.container-order select {
    width: 100%;
    padding: 12px 15px;
    margin: 8px 0 20px 0;
    border: 1.5px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: #f9fafb;
}

form input:focus,
.edit-profile-form input:focus,
.container-topup input:focus,
.container-order select:focus {
    border-color: #f1c40f;
    outline: none;
    background-color: #fff;
}

/* Grid Layout */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.col-md-4 {
    flex: 0 0 calc(33.333% - 30px);
    max-width: calc(33.333% - 30px);
}

/* Detail Page Styles */
.detail-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.detail-card {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
}

.detail-info {
    flex: 2;
    min-width: 280px;
    max-width: 600px;
}

.detail-info .card-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.detail-info .card-text {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Table Styles */
.table-booking {
    width: 100%;
    border-collapse: collapse;
}

.table-booking th, 
.table-booking td {
    border: 1px solid #ddd;
    padding: 12px 15px;
    text-align: center;
    font-size: 1rem;
}

.table-booking th {
    background-color: #3498db;
    color: white;
    font-weight: 600;
}

.table-booking tbody tr:hover {
    background-color: #f1f9ff;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 25px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    opacity: 0;
    animation: fadeInZoom 0.4s forwards;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.notification.success {
    background-color: #4caf50;
    color: #fff;
}

.notification.error {
    background-color: #e74c3c;
    color: #fff;
}

@keyframes fadeInZoom {
    0% {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Profile Image */
.profile-pic-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 3px solid #f1c40f;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .col-md-4 {
        flex: 0 0 48%;
        max-width: 48%;
    }
}

@media (max-width: 768px) {
    .container-order,
    .container-booking,
    .container-topup,
    .edit-profile-container {
        margin: 30px 15px;
        padding: 20px;
    }
    
    .detail-container {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 600px) {
    .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .navbar .nav-links {
        gap: 10px;
    }
    
    .navbar a {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .table-booking th, 
    .table-booking td {
        padding: 10px 8px;
        font-size: 0.9rem;
    }
    
    .notification {
        padding: 15px 25px;
        font-size: 16px;
    }
}

