/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f3f4f6;
}

body.bg-pink {
    background-color: #fce4ec;
}

body.centered-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

body.flex-col {
    flex-direction: column;
}

/* Header */
.header { background-color: white; padding: 20px 40px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.header h1 { color: #d81b60; margin: 0; font-size: 24px; text-decoration: none; }
.header a { text-decoration: none; color: inherit; }
.nav-links a { margin-right: 20px; text-decoration: none; color: #333; font-weight: 500; }
.user-info { display: flex; align-items: center; gap: 15px; font-weight: 500; }
.user-info img { border-radius: 50%; width: 40px; height: 40px; object-fit: cover; }

/* Layout Containers */
.container { max-width: 1200px; margin: 40px auto; padding: 0 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }

/* Cards */
.card { background: white; padding: 30px; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); margin-bottom: 20px; }
.card h2 { color: #333; margin-top: 0; }

.login-card { background: white; padding: 40px; border-radius: 16px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); text-align: center; }
.login-card h1 { color: #d81b60; margin-bottom: 20px; font-size: 28px; }
.login-card p { color: #555; margin-bottom: 30px; }
.gallery-login { max-width: 400px; width: 100%; box-sizing: border-box; }
.gallery-login p { font-size: 16px; line-height: 1.5; }
.logo-placeholder { font-size: 48px; margin-bottom: 20px; }

.add-gallery-card { max-width: 500px; margin: 0 auto 40px auto; text-align: center; }

/* Checkout Card */
.checkout-card { background: white; padding: 40px; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); text-align: center; max-width: 500px; width: 100%; }
.checkout-card h1 { color: #d81b60; margin-bottom: 20px; margin-top: 0; }
.success-icon { font-size: 64px; color: #10b981; margin-bottom: 20px; }
.error-icon { font-size: 64px; color: #ef4444; margin-bottom: 20px; }

/* QR Print Cards */
.qr-card { background: white; padding: 30px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); text-align: center; border: 2px dashed #ccc; break-inside: avoid; page-break-inside: avoid; }
.qr-card img { width: 100%; max-width: 100%; margin: 25px auto; display: block; image-rendering: pixelated; }
.qr-card h3 { margin: 0 0 10px 0; font-size: 26px; color: #333; }
.qr-card p { margin: 5px 0; color: #555; font-size: 18px; }

/* Forms & Tables */
input[type="text"] { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 18px; text-transform: uppercase; box-sizing: border-box; text-align: center; letter-spacing: 2px; }
table { width: 100%; border-collapse: collapse; margin-top: 20px; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid #eee; }
th { background: #f9fafb; font-weight: 600; }

/* Buttons */
.btn { display: inline-block; background-color: #d81b60; color: white; padding: 12px 24px; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; font-size: 16px; margin-top: 20px; text-decoration: none; text-align: center;}
.btn:hover { background-color: #ad144b; }

.btn-primary { background-color: #4285f4; }
.btn-primary:hover { background-color: #3367d6; }

.btn-green { background-color: #10b981; }
.btn-green:hover { background-color: #059669; }

.btn-outline { background-color: transparent; border: 2px solid #d81b60; color: #d81b60; margin-top: 5px; padding: 10px 20px;}
.btn-outline:hover { background-color: #fce4ec; }

.btn-logout { display: inline-block; background-color: #ef4444; color: white; text-decoration: none; padding: 8px 16px; border-radius: 6px; font-weight: bold; transition: background-color 0.2s; }
.btn-logout:hover { background-color: #dc2626; }

.btn-google { display: inline-block; background-color: #4285F4; color: white; padding: 12px 24px; text-decoration: none; border-radius: 8px; font-weight: bold; transition: background-color 0.3s; font-size: 16px; }
.btn-google:hover { background-color: #3367D6; }

.btn-checkout { background-color: #10b981; width: 100%; padding: 12px; border: none; border-radius: 6px; color: white; font-weight: bold; cursor: pointer; font-size: 16px; display: block; box-sizing: border-box; }
.btn-checkout:hover { background-color: #059669; }

.print-btn { display: block; width: 200px; margin: 0 auto 30px auto; padding: 12px; background: #d81b60; color: white; text-align: center; font-weight: bold; border-radius: 6px; cursor: pointer; border: none; font-size: 16px; }
.print-btn:hover { background: #ad144b; }

/* Alerts / Messages */
.error { color: #dc2626; margin-top: 15px; font-weight: bold; background: #fee2e2; padding: 10px; border-radius: 6px; }
.success { color: #059669; margin-top: 15px; font-weight: bold; background: #d1fae5; padding: 10px; border-radius: 6px; }
.message { padding: 15px; background: #e0f2fe; color: #0284c7; border-radius: 6px; margin-bottom: 20px; }

/* Galleries / Dashboard Grid */
.galleries-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.gallery-item { background: white; border-radius: 12px; padding: 25px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); border-top: 4px solid #d81b60; transition: transform 0.2s; text-align: center; }
.gallery-item:hover { transform: translateY(-3px); box-shadow: 0 8px 15px rgba(0,0,0,0.1); }
.gallery-item h3 { margin: 0 0 10px 0; color: #333; font-size: 22px; }
.gallery-item p { color: #666; margin: 5px 0 20px 0; }

/* Gallery Unique Views */
.gallery-header { text-align: center; margin-bottom: 40px; }
.gallery-header h2 { font-size: 32px; color: #333; margin-bottom: 10px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.photo-card { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.1); transition: transform 0.2s; position: relative; }
.photo-card:hover { transform: translateY(-5px); }
.photo-card img { width: 100%; height: 250px; object-fit: cover; display: block; }
.photo-actions { padding: 15px; text-align: center; background: #fff; border-top: 1px solid #eee; }

/* Floating Components */
.floating-cart { position: fixed; bottom: 30px; right: 30px; background: white; padding: 20px; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); z-index: 100; display: none; }
.floating-cart h3 { margin: 0 0 15px 0; color: #333; }
.cart-items { max-height: 200px; overflow-y: auto; margin-bottom: 15px; font-size: 14px; }
.cart-item { display: flex; justify-content: space-between; margin-bottom: 8px; border-bottom: 1px solid #eee; padding-bottom: 5px; }

/* Language Switcher */
.lang-switcher {
    position: fixed; 
    bottom: 20px; 
    left: 20px; 
    z-index: 1000; 
    font-family: 'Inter', sans-serif; 
    background: white; 
    padding: 10px 15px; 
    border-radius: 30px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
    border: 1px solid #eee;
}

/* Print Overrides */
@media print {
    body { background-color: white; padding: 0; border: none; }
    @page { margin: 1cm; }
    .print-btn, .lang-switcher { display: none !important; }
    .grid { max-width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .qr-card { box-shadow: none; border: 1px dashed #666; padding: 40px; margin: 0; }
    .qr-card img { margin: 30px auto; width: 100%; }
}
