/* Import Google Font - Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --ep-primary: #1d4ed8;       /* Deep Royal Blue */
    --ep-primary-hover: #1e40af; /* Darker Blue */
    --ep-bg: #eef0f3;            /* Soft premium light gray */
    --ep-card-bg: #ffffff;
    --ep-text-main: #111827;     /* Near black */
    --ep-text-muted: #6b7280;    /* Muted gray */
    --ep-text-sub: #4b5563;      /* Mid-gray for descriptions */
    --ep-input-bg: #eef0f2;      /* Light gray input background */
    --ep-input-border: transparent;
    --ep-border-radius-lg: 24px; /* Highly rounded elements */
    --ep-border-radius-md: 16px;
    --ep-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--ep-bg);
    color: var(--ep-text-main);
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: 2rem;
}

/* Floating Navigation Header */
.ep-header-container {
    max-width: 1200px;
    margin: 1.5rem auto;
    padding: 0 1rem;
}

.ep-navbar {
    background-color: var(--ep-card-bg);
    border-radius: 9999px;
    padding: 0.75rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: var(--ep-transition);
}

.ep-navbar .navbar-brand {
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--ep-text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ep-navbar .nav-link {
    color: var(--ep-text-sub);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1.25rem !important;
    transition: var(--ep-transition);
    position: relative;
}

.ep-navbar .nav-link:hover {
    color: var(--ep-primary);
}

.ep-navbar .nav-link.active {
    color: var(--ep-primary) !important;
}

.ep-navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 1.25rem;
    right: 1.25rem;
    height: 3px;
    background-color: var(--ep-primary);
    border-radius: 2px;
}

.btn-ep-login {
    background-color: var(--ep-primary);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 9999px;
    padding: 0.6rem 2.2rem;
    border: none;
    transition: var(--ep-transition);
}

.btn-ep-login:hover {
    background-color: var(--ep-primary-hover);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.2);
}

/* Premium Card Layouts */
.ep-main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.ep-card {
    background-color: var(--ep-card-bg);
    border-radius: var(--ep-border-radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
    border: none;
    padding: 3.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: var(--ep-transition);
}

@media (max-width: 768px) {
    .ep-card {
        padding: 2rem 1.5rem;
    }
}

.ep-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--ep-text-muted);
    margin-bottom: 0.75rem;
    display: block;
}

.ep-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--ep-text-main);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.ep-subtitle {
    font-size: 0.95rem;
    color: var(--ep-text-sub);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

/* Action Cards (Home Page) */
.ep-action-card-row {
    margin-top: 1rem;
}

.ep-action-card {
    border-radius: var(--ep-border-radius-md);
    padding: 1.75rem;
    text-decoration: none;
    display: block;
    transition: var(--ep-transition);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.ep-action-card.check-in {
    background-color: var(--ep-primary);
    color: #ffffff;
}

.ep-action-card.check-in:hover {
    background-color: var(--ep-primary-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(29, 78, 216, 0.25);
}

.ep-action-card.checkout {
    background-color: #f3f4f6;
    color: var(--ep-text-main);
}

.ep-action-card.checkout:hover {
    background-color: #e5e7eb;
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
}

.ep-action-label {
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
    display: block;
}

.ep-action-card.check-in .ep-action-label {
    color: rgba(255, 255, 255, 0.7);
}

.ep-action-card.checkout .ep-action-label {
    color: var(--ep-text-muted);
}

.ep-action-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ep-action-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: var(--ep-transition);
}

.ep-action-card.check-in .ep-action-arrow {
    background-color: #ffffff;
    color: var(--ep-primary);
}

.ep-action-card.checkout .ep-action-arrow {
    background-color: var(--ep-primary);
    color: #ffffff;
}

.ep-action-desc {
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

.ep-action-card.check-in .ep-action-desc {
    color: rgba(255, 255, 255, 0.85);
}

.ep-action-card.checkout .ep-action-desc {
    color: var(--ep-text-sub);
}

/* Receptionist Image Card */
.ep-image-wrapper {
    position: relative;
    border-radius: var(--ep-border-radius-lg);
    overflow: hidden;
    height: 100%;
    min-height: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
}

.ep-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ep-floating-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background-color: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(8px);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

/* Forms styling */
.form-group-custom {
    margin-bottom: 1.25rem;
}

.form-label-custom {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ep-text-main);
    margin-bottom: 0.5rem;
    display: block;
}

.form-control-custom {
    background-color: var(--ep-input-bg);
    border: 1px solid var(--ep-input-border);
    border-radius: var(--ep-border-radius-md);
    padding: 0.85rem 1.2rem;
    color: var(--ep-text-main);
    font-size: 0.95rem;
    width: 100%;
    transition: var(--ep-transition);
}

.form-control-custom:focus {
    background-color: #ffffff;
    border-color: var(--ep-primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.1);
}

.form-control-custom::placeholder {
    color: #9ca3af;
}

select.form-control-custom {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%234b5563' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
}

.btn-ep-submit {
    background-color: var(--ep-primary);
    color: #ffffff;
    font-weight: 600;
    border-radius: 9999px;
    padding: 0.85rem 2.2rem;
    border: none;
    transition: var(--ep-transition);
}

.btn-ep-submit:hover {
    background-color: var(--ep-primary-hover);
    box-shadow: 0 8px 16px rgba(29, 78, 216, 0.2);
}

.btn-ep-secondary {
    background-color: transparent;
    color: var(--ep-text-sub);
    font-weight: 600;
    border-radius: 9999px;
    padding: 0.85rem 2.2rem;
    border: none;
    transition: var(--ep-transition);
    text-decoration: none;
}

.btn-ep-secondary:hover {
    color: var(--ep-text-main);
    background-color: #f3f4f6;
}

.btn-ep-pill-sm {
    background-color: var(--ep-primary);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 9999px;
    padding: 0.5rem 1.25rem;
    border: none;
    display: inline-block;
    margin-bottom: 2rem;
    transition: var(--ep-transition);
    text-decoration: none;
}

.btn-ep-pill-sm:hover {
    background-color: var(--ep-primary-hover);
    color: #ffffff;
}

/* Modals */
.ep-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 24, 39, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1050;
}

.ep-modal-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.ep-modal {
    background-color: var(--ep-card-bg);
    border-radius: var(--ep-border-radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 550px;
    padding: 3rem;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (max-width: 576px) {
    .ep-modal {
        padding: 2rem 1.5rem;
    }
}

.ep-modal-backdrop.show .ep-modal {
    transform: translateY(0);
}

.ep-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--ep-text-muted);
    cursor: pointer;
    transition: var(--ep-transition);
}

.ep-modal-close:hover {
    color: var(--ep-text-main);
    transform: rotate(90deg);
}

/* Authentication Page Styles */
.ep-auth-container {
    max-width: 1100px;
    margin: 4vh auto;
    padding: 0 1rem;
}

.ep-auth-card {
    background-color: var(--ep-card-bg);
    border-radius: var(--ep-border-radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.ep-auth-image-col {
    padding: 1rem;
}

.ep-auth-image-wrapper {
    height: 100%;
    min-height: 550px;
    border-radius: 20px;
    overflow: hidden;
}

.ep-auth-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ep-auth-form-col {
    padding: 4rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 991px) {
    .ep-auth-form-col {
        padding: 3rem 2rem;
    }
    .ep-auth-image-wrapper {
        min-height: 350px;
    }
}

.ep-auth-logo-center {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.ep-auth-logo-center svg {
    margin-right: 0.5rem;
}

.ep-auth-logo-text {
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--ep-text-main);
}

.password-input-wrapper {
    position: relative;
}

.password-toggle-btn {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--ep-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--ep-transition);
}

.password-toggle-btn:hover {
    color: var(--ep-text-main);
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid var(--ep-text-muted);
    accent-color: var(--ep-primary);
}

.auth-links {
    font-weight: 600;
    color: var(--ep-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--ep-transition);
}

.auth-links:hover {
    color: var(--ep-primary-hover);
    text-decoration: underline;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}
