@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* =========================================================
   RDHome Admin Portal Styles
   ========================================================= */

body {
    font-family: 'Inter', sans-serif;
    background-color: #f4f7f6;
    color: #333;
}

/* Modern Nav */
.admin-navbar {
    background-color: #07142b;
    border-bottom: 3px solid #d53135;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 0.5rem 1rem;
}

.admin-navbar .nav-link {
    color: #fff !important;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 6px;
    padding: 8px 16px !important;
    margin: 0 4px;
}

.admin-navbar .nav-link:hover, .admin-navbar .nav-link.active {
    background-color: rgba(255,255,255,0.1);
}

.navbar-brand img {
    height: 40px;
    margin-right: 15px;
}

/* Admin Card Container */
.admin-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #edf2f7;
}

.admin-card-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #edf2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-card-header h2, .admin-card-header h3 {
    color: #07142b;
    margin: 0;
    font-weight: 700;
}

/* Modern Tabs */
.admin-tabs {
    display: flex;
    border-bottom: 2px solid #edf2f7;
    margin-bottom: 20px;
    gap: 20px;
}

.admin-tab {
    color: #64748b;
    text-decoration: none;
    padding: 10px 4px;
    font-weight: 600;
    font-size: 1rem;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    margin-bottom: -2px;
}

.admin-tab:hover {
    color: #07142b;
    text-decoration: none;
}

.admin-tab.active {
    color: #d53135;
    border-bottom-color: #d53135;
}

/* Tables */
.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-table th {
    background-color: #f8fafc;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 16px;
    border-bottom: 1px solid #edf2f7;
    text-align: left;
}

.admin-table td {
    padding: 16px;
    border-bottom: 1px solid #edf2f7;
    vertical-align: middle;
    color: #334155;
}

.admin-table tbody tr {
    transition: background-color 0.2s ease;
}

.admin-table tbody tr:hover {
    background-color: #f8fafc;
}

/* Buttons */
.btn-primary-custom, .view-btn, .add-btn {
    background-color: #07142b;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    padding: 8px 24px;
    border: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary-custom:hover, .view-btn:hover, .add-btn:hover {
    background-color: #112a5a;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(7, 20, 43, 0.2);
}

.btn-secondary-custom {
    background-color: #fff;
    color: #07142b;
    font-weight: 600;
    border-radius: 8px;
    padding: 8px 24px;
    border: 1px solid #cbd5e1;
    transition: all 0.2s ease;
}

.btn-secondary-custom:hover {
    background-color: #f8fafc;
    color: #07142b;
}

.btn-danger-custom {
    background-color: #d53135;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    padding: 8px 24px;
    border: none;
    transition: all 0.2s ease;
}

.btn-danger-custom:hover {
    background-color: #b92a2e;
    color: #fff;
    box-shadow: 0 4px 12px rgba(213, 49, 53, 0.2);
}

/* Badges */
.badge-custom {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-block;
    white-space: nowrap;
}
.badge-pending { background-color: #fef3c7; color: #d97706; }
.badge-progress { background-color: #e0f2fe; color: #0284c7; }
.badge-resolved { background-color: #dcfce7; color: #16a34a; }
.badge-closed { background-color: #f1f5f9; color: #475569; }

/* Filter Section */
.filter-container {
    background-color: #fff;
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border: 1px solid #edf2f7;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* Specific to Inquiries */
.purpose-dropdown {
    background-color: #f8fafc;
    color: #334155;
    border: 1px solid #cbd5e1;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
}
.purpose-dropdown:focus {
    border-color: #07142b;
}

/* Custom Forms */
.form-control-custom {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background-color: #fff;
    color: #334155;
    padding: 10px 16px;
    font-weight: 500;
    transition: all 0.2s ease;
    height: auto;
}

.form-control-custom:focus {
    border-color: #07142b;
    box-shadow: 0 0 0 3px rgba(7, 20, 43, 0.1);
    outline: none;
}

.form-label-custom {
    color: #475569;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

/* Login Page */
.login-body {
    background-color: #f4f7f6;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.login-card {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    border: 1px solid #edf2f7;
}

.login-header {
    color: #07142b;
    font-weight: 800;
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
    margin-top: 0;
}

.login-logo {
    display: block;
    margin: 0 auto 20px auto;
    max-height: 80px;
}

.btn-login {
    background-color: #07142b;
    color: white;
    font-weight: 700;
    border-radius: 8px;
    padding: 12px;
    border: none;
    font-size: 16px;
    width: 100%;
    transition: all 0.2s ease;
}

.btn-login:hover {
    background-color: #112a5a;
    color: white;
    box-shadow: 0 4px 15px rgba(7, 20, 43, 0.2);
}

/* 3D Model Upload Custom UI */
.model-upload-container {
    border-radius: 12px;
    background-color: #fff;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #edf2f7;
}

.model-upload-box {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    background-color: #f8fafc;
    padding: 30px;
    text-align: center;
    transition: all 0.2s ease;
}
.model-upload-box:hover {
    border-color: #07142b;
    background-color: #f1f5f9;
}

.model-viewer-preview {
    background-color: #f8fafc;
    border-radius: 12px;
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    border: 1px solid #cbd5e1;
}

.color-input-pill {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 60px;
    height: 35px;
    background-color: transparent;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0;
    cursor: pointer;
    vertical-align: middle;
}
.color-input-pill::-webkit-color-swatch {
    border-radius: 6px;
    border: none;
}
.color-input-pill::-moz-color-swatch {
    border-radius: 6px;
    border: none;
}

/* Modern Modal */
.modal-content-custom {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    overflow: hidden;
}

.modal-header-custom {
    background-color: #07142b;
    color: #fff;
    border-bottom: none;
    padding: 20px 24px;
}

.modal-body-custom {
    background-color: #fff;
    padding: 30px;
}

.chat-bubble {
    padding: 12px 16px;
    border-radius: 16px;
    margin-bottom: 15px;
    max-width: 85%;
    line-height: 1.5;
}

.chat-admin {
    background-color: #07142b;
    color: #fff;
    border-bottom-right-radius: 4px;
    margin-left: auto;
}

.chat-customer {
    background-color: #f1f5f9;
    color: #334155;
    border-bottom-left-radius: 4px;
    margin-right: auto;
}

/* =========================================================
   RDHome Website & Customer Inquiry Portal Styles
   ========================================================= */

.inquire-body {
    background-color: #f0f4f8;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    box-sizing: border-box;
}

.inquire-body * {
    box-sizing: border-box;
}

.inquire-body .container {
    display: flex;
    flex-direction: row;
    max-width: 1100px;
    width: 100%;
    background-color: #f0f4f8;
    gap: 40px;
    align-items: stretch;
}

/* Left Card Styling */
.app-card {
    background-color: #0b1528;
    color: #ffffff;
    border-radius: 16px;
    padding: 35px 30px 25px 30px;
    flex: 1.1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.app-card-header {
    position: relative;
    z-index: 1;
}

.app-card h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.app-card p {
    font-size: 1.05rem;
    line-height: 1.5;
    color: #e0e6ed;
    max-width: 100%;
}

/* QR / Image Boxes Section */
.qr-section {
    display: flex;
    gap: 20px;
    margin: 25px 0;
    width: 100%;
}

.qr-box {
    background-color: #f0f4f8;
    flex: 1;
    aspect-ratio: 1 / 1;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Image Styling Inside the Boxes */
.qr-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Bottom Download Link */
.download-info {
    margin-top: 5px;
}

.download-info h4 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.download-info a {
    color: #e53935;
    text-decoration: underline;
    font-weight: bold;
    font-size: 1rem;
}

.download-info a:hover {
    color: #ff5252;
}

/* Right Form Styling */
.form-container {
    flex: 0.9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 0;
}

.form-container h2 {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #0b1528;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* Alert Feedback Boxes */
.inquire-body .alert {
    padding: 12px 18px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-size: 0.92rem;
    line-height: 1.4;
}

.inquire-body .alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1.5px solid #34d399;
}

.inquire-body .alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1.5px solid #f87171;
}

.inquire-body .form-group {
    margin-bottom: 18px;
}

.inquire-body .form-group label {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    color: #0b1528;
    margin-bottom: 8px;
}

.inquire-body .form-control {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #0b1528;
    border-radius: 25px;
    background-color: #f0f4f8;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s, background-color 0.2s;
    color: #0b1528;
}

.inquire-body .form-control:focus {
    background-color: #ffffff;
    border-color: #1a365d;
}

/* Phone Input Prefix Styling */
.phone-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.phone-prefix {
    position: absolute;
    left: 18px;
    font-size: 1rem;
    font-weight: 600;
    color: #0b1528;
    pointer-events: none;
}

.phone-input {
    padding-left: 55px !important;
}

/* Select / Dropdown Control Styling */
.select-wrapper {
    position: relative;
    width: 100%;
}

.select-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    padding-right: 40px;
}

.inquire-body select:invalid,
.inquire-body select:has(option[value=""]:checked) {
    color: #6c757d;
}

.select-control option {
    color: #0b1528;
    background-color: #ffffff;
}

.select-wrapper::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 7px solid #0b1528;
    pointer-events: none;
}

/* Textarea Styling */
.inquire-body textarea.form-control {
    border-radius: 20px;
    resize: vertical;
    min-height: 140px;
}

.submit-btn-container {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.submit-btn {
    background-color: #0b1528;
    color: #ffffff;
    border: none;
    padding: 10px 35px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.2s;
}

.submit-btn:hover {
    background-color: #1a2942;
}

/* Mobile Responsiveness */
@media (max-width: 850px) {
    .inquire-body .container {
        flex-direction: column;
    }
}