/* 
    PAGER SEMAR CUSTOM CSS
    ======================
    Author: Pager Semar Team
    Description: Custom styling for Pager Semar membership application.
    Usage: Include this file in views to maintain consistent UI/UX across the platform.
*/

body.pagersemar-bg {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh; /* Menggunakan min-height agar bisa scroll jika konten melebihi layar */
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px; /* Tambahkan padding agar kartu tidak menempel ke pinggir layar HP */
    box-sizing: border-box;
}

.main-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    padding: 40px 30px;
    width: 100%;
    max-width: 480px; /* Diperlebar dari 400px */
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
    box-sizing: border-box;
    margin: 0 auto; /* Memastikan kartu di tengah secara horizontal */
}

/* Responsive adjustments */
@media only screen and (max-width: 480px) {
    .main-card {
        padding: 30px 20px;
    }
    .logo-container img {
        width: 130px;
    }
    .action-item {
        padding: 15px 20px;
    }
    .action-item i {
        font-size: 20px;
        margin-right: 15px;
    }
    .action-item b {
        font-size: 14px;
    }
}

.logo-container img {
    width: 160px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.welcome-text h3 {
    font-weight: 800;
    color: #1e3c72;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.welcome-text p {
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
}

.action-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.action-item {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    background: white;
    border-radius: 15px;
    text-decoration: none !important;
    color: #333 !important;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.action-item:hover {
    border-color: #1e3c72;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(30, 60, 114, 0.15);
    background: #f8fbff;
}

.action-item i {
    font-size: 24px;
    margin-right: 20px;
    width: 35px;
    color: #1e3c72;
}

.action-item b {
    font-size: 16px;
    font-weight: 600;
}

.login-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1e3c72;
    font-weight: 700;
    text-decoration: none !important;
    font-size: 14px;
    transition: opacity 0.2s;
}

.btn-login:hover {
    opacity: 0.7;
}

/* Modal Styling */
.modal-content {
    border-radius: 20px;
    border: none;
    overflow: hidden;
}

.modal-header {
    background: #1e3c72;
    color: white;
    padding: 20px;
    border: none;
}

.modal-header .close {
    color: white;
    opacity: 1;
}

#qr-div {
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #eee !important;
}

/* Form Styling */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-control {
    border-radius: 10px !important;
    border: 2px solid #f0f0f0 !important;
    height: 45px !important;
    padding: 10px 15px !important;
    font-size: 14px !important;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #1e3c72 !important;
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1) !important;
}

.btn-primary-custom {
    background-color: #1e3c72 !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 12px 25px !important;
    font-weight: 700 !important;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: #2a5298 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 60, 114, 0.3);
}

.login-links {
    margin-top: 15px;
    font-size: 13px;
}

.login-links a {
    color: #666;
    text-decoration: none;
    margin: 0 10px;
}

/* Modern Restaurant Landing Styling */
.landing-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.landing-header .navbar-brand img {
    height: 45px;
    transition: transform 0.3s ease;
}

.landing-header .navbar-brand:hover img {
    transform: scale(1.05);
}

.landing-header .nav-link {
    color: #1e3c72 !important;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 25px !important;
    position: relative;
}

.landing-header .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 25px;
    right: 25px;
    height: 2px;
    background: #ffd700;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.landing-header .nav-link:hover::after {
    transform: scaleX(1);
}

.hero-section {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1514362545857-3bc16c4c7d1b?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-top: 0;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 2px 4px 10px rgba(0,0,0,0.3);
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 20px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px;
}

.btn-hero {
    background: #ffd700;
    color: #000;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2);
}

.btn-hero:hover {
    background: #fff;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.3);
}

.outlet-section {
    padding: 100px 0;
    background: #fff;
}

.section-title {
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 800;
    color: #1e3c72;
    position: relative;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #ffd700;
    border-radius: 2px;
}

.outlet-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 40px;
    text-decoration: none !important;
    display: block;
    color: inherit !important;
    border: 1px solid #f0f0f0;
}

.outlet-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(30, 60, 114, 0.15);
    border-color: #1e3c72;
}

.outlet-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.outlet-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.outlet-card:hover .outlet-image img {
    transform: scale(1.1);
}

.outlet-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 215, 0, 0.9);
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.outlet-info {
    padding: 25px;
    text-align: center;
}

.outlet-info h4 {
    margin: 0 0 10px;
    font-weight: 800;
    color: #1e3c72;
    font-size: 20px;
}

.outlet-info p {
    margin: 0;
    color: #777;
    font-size: 14px;
    line-height: 1.6;
}

.landing-footer {
    background: #111;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    opacity: 0.6;
    font-size: 14px;
}

@media only screen and (max-width: 768px) {
    .hero-content h1 { font-size: 36px; }
    .hero-section { height: 60vh; }
    .outlet-section { padding: 60px 0; }
}
