/* Custom Styles untuk System Bakery */

.font-display {
    font-family: 'Playfair Display', serif;
}

/* Animasi untuk kek */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.cake-float {
    animation: float 3s ease-in-out infinite;
}

/* Styling untuk form */
.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Styling untuk butang */
.btn-custom {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    color: white;
    transform: translateY(-2px);
}

/* Styling untuk card */
.card-custom {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Styling untuk status tempahan */
.status-baru {
    background-color: #ffc107;
    color: #000;
}

.status-dalam_proses {
    background-color: #17a2b8;
    color: white;
}

.status-siap {
    background-color: #28a745;
    color: white;
}

.status-sudah_diambil {
    background-color: #6c757d;
    color: white;
}

/* Warna Latar Belakang untuk Status Tempahan */
.status-select.status-Baru {
    background-color: #ffc107; /* Kuning */
    color: #000;
    border-color: #ffc107;
}
.status-select.status-Dalam-Proses {
    background-color: #0d6efd; /* Biru */
    color: #fff;
    border-color: #0d6efd;
}
.status-select.status-Siap {
    background-color: #198754; /* Hijau */
    color: #fff;
    border-color: #198754;
}
.status-select.status-Sudah-Diambil {
    background-color: #6c757d; /* Kelabu */
    color: #fff;
    border-color: #6c757d;
}

/* Responsive design */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .cake-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success animation */
.success-checkmark {
    color: #28a745;
    font-size: 2rem;
    animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Form validation styles */
.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}

.hero-section {
    position: relative;
    padding: 100px 0;
    color: white;
    background: url('/uploads/web_image/cake.jpg') no-repeat center center;
    background-size: cover;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Lapisan gelap untuk pastikan teks boleh dibaca */
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Letakkan semula gaya untuk gradient-bg yang terpadam */
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Gallery Page Styles */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-img-item {
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-img-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.gallery-img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Lightbox Styles */
.lightbox-overlay {
  display: none;
  position: fixed;
  z-index: 1050; /* Higher than Bootstrap's modal z-index */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
  padding-top: 60px;
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

.lightbox-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  animation: zoomIn 0.5s;
}

@keyframes zoomIn {
  from {transform: scale(0)}
  to {transform: scale(1)}
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* --- Admin Layout Styles --- */
.admin-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: row;
}

.admin-sidebar {
    width: 260px;
    background-color: #2c3e50;
    color: #ecf0f1;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 1.25rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid #34495e;
}

.sidebar-brand {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
}
.sidebar-brand:hover {
    color: #ffffff;
}

.sidebar-nav {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: #bdc3c7;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    background-color: #34495e;
    color: #ffffff;
}

.sidebar-nav hr {
    margin: 1rem;
    border-color: #34495e;
}

.admin-main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin-left: 260px;
    background-color: #f4f6f9;
}

.admin-topbar {
    background: #ffffff;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.admin-content {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100vw;
    padding: 2rem 2.5rem 1.5rem 2.5rem;
    box-sizing: border-box;
    margin-bottom: 0 !important;
}

.admin-footer {
    flex-shrink: 0;
    background: #f8f9fa;
    border-top: 1px solid #e5e5e5;
    color: #888;
    font-size: 0.95rem;
}

/* Dashboard card margin for friendlier look */
.small-box {
    margin-bottom: 1.5rem;
}

/* Responsive Styles for Admin Layout */
@media (max-width: 991.98px) {
    .admin-sidebar {
        left: -260px;
    }
    .admin-sidebar.active {
        left: 0;
    }
    .admin-main {
        margin-left: 0;
    }
    .admin-main.sidebar-active {
        margin-left: 260px; /* Optional: push content when sidebar is open */
    }
}

.dashboard-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: flex-start;
}
.dashboard-card {
    flex: 1 1 220px;
    min-width: 220px;
    max-width: 300px;
    box-sizing: border-box;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.dashboard-cake-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90%;
}
@media (max-width: 1200px) {
    .dashboard-card { max-width: 48%; }
}
@media (max-width: 768px) {
    .dashboard-card { max-width: 100%; min-width: 180px; }
    .dashboard-cards { gap: 1rem; }
}

.settings-card {
    max-width: 700px;
    margin: 0 auto 0 auto !important;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    border-radius: 16px;
    border: none;
}
.section-title {
    color: #3b82f6;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.section-divider {
    border: none;
    border-top: 2px solid #e3eafc;
    margin: 2rem 0 2rem 0;
}
.settings-card .form-label {
    font-weight: 500;
}
.settings-card .form-control {
    border-radius: 8px;
}
.settings-card .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}
.settings-card .btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}
.settings-card .card-header {
    background: transparent;
    border-bottom: none;
}
.settings-card .card-body {
    padding-bottom: 1.5rem;
}
.admin-content > .settings-card {
    margin-bottom: 0;
} 