/* Custom Fonts and Typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Root Variables */
:root {
    --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.625rem;
    /* 10px */
    --font-size-sm: 0.75rem;
    /* 12px */
    --font-size-base: 0.8125rem;
    /* 13px */
    --font-size-lg: 0.875rem;
    /* 14px */
    --font-size-xl: 1rem;
    /* 16px */
    --font-size-2xl: 1.125rem;
    /* 18px */
    --font-size-3xl: 1.25rem;
    /* 20px */
    --font-size-4xl: 1.5rem;
    /* 24px */
    --font-size-5xl: 1.875rem;
    /* 30px */

    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
}

/* Global Typography */
* {
    font-family: var(--font-family-primary);
}

body {
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    font-weight: 400;
}

/* Headings */
h1,
.h1 {
    font-size: var(--font-size-4xl);
    font-weight: 600;
    line-height: var(--line-height-tight);
}

h2,
.h2 {
    font-size: var(--font-size-3xl);
    font-weight: 600;
    line-height: var(--line-height-tight);
}

h3,
.h3 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    line-height: var(--line-height-tight);
}

h4,
.h4 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    line-height: var(--line-height-tight);
}

h5,
.h5 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    line-height: var(--line-height-tight);
}

h6,
.h6 {
    font-size: var(--font-size-base);
    font-weight: 600;
    line-height: var(--line-height-tight);
}

/* Page Title */
.page-title {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    line-height: var(--line-height-tight);
}

/* Text Sizes */
.text-xs {
    font-size: var(--font-size-xs) !important;
}

.text-sm {
    font-size: var(--font-size-sm) !important;
}

.text-base {
    font-size: var(--font-size-base) !important;
}

.text-lg {
    font-size: var(--font-size-lg) !important;
}

.text-xl {
    font-size: var(--font-size-xl) !important;
}

/* Table Typography */
.table {
    font-size: var(--font-size-sm);
}

.table thead th {
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.table tbody td {
    font-size: var(--font-size-sm);
}

/* Table Container */
.table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: 8px;
}

.table-container .table {
    min-width: 800px;
    margin-bottom: 0;
}

/* Table Column Widths */
.table th:nth-child(1),
.table td:nth-child(1) {
    width: 8%;
}

/* ID */
.table th:nth-child(2),
.table td:nth-child(2) {
    width: 15%;
}

/* Nama Unit */
.table th:nth-child(3),
.table td:nth-child(3) {
    width: 12%;
}

/* Kota */
.table th:nth-child(4),
.table td:nth-child(4) {
    width: 20%;
}

/* Alamat */
.table th:nth-child(5),
.table td:nth-child(5) {
    width: 12%;
}

/* Jumlah Kamar */
.table th:nth-child(6),
.table td:nth-child(6) {
    width: 15%;
}

/* Puslit */
.table th:nth-child(7),
.table td:nth-child(7) {
    width: 10%;
}

/* Status */
.table th:nth-child(8),
.table td:nth-child(8) {
    width: 8%;
}

/* Aksi */

/* Badge Typography */
.badge {
    font-size: var(--font-size-xs);
    font-weight: 500;
}

.badge.fs-6 {
    font-size: var(--font-size-sm) !important;
}

/* Button Typography */
.btn {
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.btn-sm {
    font-size: var(--font-size-xs);
}

.btn-lg {
    font-size: var(--font-size-base);
}

/* Soft Color Action Buttons */
.btn-outline-primary {
    background-color: rgba(15, 76, 130, 0.08);
    color: var(--primary-color);
    border: 1px solid rgba(15, 76, 130, 0.2);
}

.btn-outline-primary:hover {
    background-color: rgba(15, 76, 130, 0.15);
    color: var(--primary-color);
    border-color: rgba(15, 76, 130, 0.3);
}

.btn-outline-info {
    background-color: rgba(13, 202, 240, 0.08);
    color: #0dcaf0;
    border: 1px solid rgba(13, 202, 240, 0.2);
}

.btn-outline-info:hover {
    background-color: rgba(13, 202, 240, 0.15);
    color: #0dcaf0;
    border-color: rgba(13, 202, 240, 0.3);
}

.btn-outline-warning {
    background-color: rgba(255, 193, 7, 0.08);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.btn-outline-warning:hover {
    background-color: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border-color: rgba(255, 193, 7, 0.3);
}

.btn-outline-danger {
    background-color: rgba(220, 53, 69, 0.08);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.btn-outline-danger:hover {
    background-color: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.3);
}

.btn-outline-secondary {
    border: 1px solid #6c757d !important;
    color: #6c757d !important;
}

.btn-outline-secondary:hover {
    background-color: #6c757d !important;
    color: white !important;
}

/* Action Button Specific Styles */
.btn.rounded-circle {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 50%;
    font-size: var(--font-size-xs);
}

.btn.rounded-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn.rounded-circle:active {
    transform: scale(0.95);
}

/* Form Elements */
.form-label {
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.form-control {
    font-size: var(--font-size-sm);
}

.form-select {
    font-size: var(--font-size-sm);
}

/* Alert Typography */
.alert {
    font-size: var(--font-size-sm);
}

/* Modal Typography */
.modal-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
}

.modal-body {
    font-size: var(--font-size-sm);
}

/* Card Typography */
.card-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
}

.card-body {
    font-size: var(--font-size-sm);
}

/* Navigation */
.navbar-brand {
    font-size: var(--font-size-lg);
    font-weight: 600;
}

.nav-link {
    font-size: var(--font-size-sm);
    font-weight: 500;
}

/* Breadcrumb */
.breadcrumb {
    font-size: var(--font-size-sm);
}

.breadcrumb-item {
    font-size: var(--font-size-sm);
}

/* Stats Cards */
.stats-number {
    font-size: var(--font-size-3xl);
    font-weight: 700;
}

/* Navigation Cards */
.nav-card h6 {
    font-size: var(--font-size-sm);
    font-weight: 500;
}

/* List Group */
.list-group-item {
    font-size: var(--font-size-sm);
}

/* Small Text */
small,
.small {
    font-size: var(--font-size-xs);
}

/* Unit Icon */
.unit-icon {
    font-size: var(--font-size-lg);
}

/* Empty State */
.empty-state h4 {
    font-size: var(--font-size-xl);
    font-weight: 600;
}

.empty-state p {
    font-size: var(--font-size-sm);
}

/* Responsive Font Sizes */
@media (max-width: 768px) {
    :root {
        --font-size-xs: 0.5625rem;
        /* 9px */
        --font-size-sm: 0.6875rem;
        /* 11px */
        --font-size-base: 0.75rem;
        /* 12px */
        --font-size-lg: 0.8125rem;
        /* 13px */
        --font-size-xl: 0.875rem;
        /* 14px */
        --font-size-2xl: 1rem;
        /* 16px */
        --font-size-3xl: 1.125rem;
        /* 18px */
        --font-size-4xl: 1.25rem;
        /* 20px */
        --font-size-5xl: 1.5rem;
        /* 24px */
    }

    .page-title {
        font-size: var(--font-size-xl);
    }

    .stats-number {
        font-size: var(--font-size-2xl);
    }
}

/* Font Weight Utilities */
.font-light {
    font-weight: 300 !important;
}

.font-normal {
    font-weight: 400 !important;
}

.font-medium {
    font-weight: 500 !important;
}

.font-semibold {
    font-weight: 600 !important;
}

.font-bold {
    font-weight: 700 !important;
}

/* Line Height Utilities */
.leading-tight {
    line-height: var(--line-height-tight) !important;
}

.leading-normal {
    line-height: var(--line-height-normal) !important;
}

.leading-relaxed {
    line-height: var(--line-height-relaxed) !important;
}

/* Navigation Active State Styles */
.navbar-nav .nav-item.active .nav-link {
    color: #007bff !important;
    font-weight: 600;
    position: relative;
}

.navbar-nav .nav-item.active .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background-color: #007bff;
    border-radius: 1px;
}

/* Frontend Navigation Active State Override */
.eorik-nav-style .navbar-area .main-nav nav .navbar-nav .nav-item.active a {
    color: #cc8c18 !important;
    font-weight: 600;
    position: relative;
}

.eorik-nav-style .navbar-area .main-nav nav .navbar-nav .nav-item.active a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    height: 2px;
    background-color: #cc8c18;
    border-radius: 1px;
}

/* Sidebar Modal Active State */
.sidebar-modal-widget ul li.active a {
    color: #007bff !important;
    font-weight: 600;
}

.sidebar-modal-widget ul li.active {
    background-color: rgba(0, 123, 255, 0.1);
    border-radius: 4px;
    padding: 4px 8px;
    margin: 2px 0;
}

/* Custom FilePond styles untuk preview yang lebih baik */
.filepond--root {
    font-family: inherit;
}

.filepond--panel-root {
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
}

.filepond--drop-label {
    color: #6c757d;
    font-size: 14px;
}

.filepond--item {
    width: 150px;
    height: 150px;
    margin: 8px;
}

.filepond--image-preview {
    border-radius: 8px;
    overflow: hidden;
}

.filepond--image-preview-wrapper {
    border-radius: 8px;
}

.filepond--file-info {
    font-size: 12px;
    color: #6c757d;
}

.filepond--progress-indicator {
    background-color: #007bff;
}

.filepond--action-remove-item {
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 12px;
}

.filepond--action-remove-item:hover {
    background-color: #c82333;
}

/* Feedback Form Styles */
.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form .form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.contact-form .form-control,
.contact-form select.form-control {
    height: 50px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #fff;
    display: flex;
    align-items: center;
    line-height: 1.5;
}

.contact-form .form-control:focus,
.contact-form select.form-control:focus {
    border-color: #cc8c18;
    box-shadow: 0 0 0 0.2rem rgba(204, 140, 24, 0.25);
    outline: none;
}

.contact-form textarea.form-control {
    height: auto;
    min-height: 120px;
    resize: vertical;
}



.contact-form .default-btn {
    background: linear-gradient(135deg, #cc8c18 0%, #b37a15 100%);
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
}

.contact-form .default-btn:hover {
    background: linear-gradient(135deg, #b37a15 0%, #996614 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(204, 140, 24, 0.3);
    color: white;
    text-decoration: none;
}

.contact-form .default-btn i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.contact-form .default-btn:hover i {
    transform: translateX(3px);
}

/* Form validation styles */
.contact-form .form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.contact-form .form-control.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.contact-form .invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 5px;
    font-size: 12px;
    color: #dc3545;
}

.contact-form .valid-feedback {
    display: block;
    width: 100%;
    margin-top: 5px;
    font-size: 12px;
    color: #28a745;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-form {
        padding: 25px 20px;
    }

    .contact-form .form-control,
    .contact-form select.form-control {
        height: 45px;
        font-size: 13px;
    }

    .contact-form textarea.form-control {
        min-height: 100px;
    }

    .contact-form .default-btn {
        padding: 12px 25px;
        font-size: 14px;
    }
}

/* Additional form improvements */
.contact-form .form-group {
    position: relative;
}



.contact-form .form-control:not(:placeholder-shown)+.form-label,
.contact-form .form-control:focus+.form-label {
    color: #cc8c18;
    font-weight: 600;
}

.contact-form select.form-control option {
    padding: 12px 15px;
    font-size: 14px;
    line-height: 1.5;
    vertical-align: middle;
}



.contact-form select.form-control option:hover {
    background-color: #f8f9fa;
}

/* Simple vertical alignment fix for select */
.contact-form select.form-control {
    padding-top: 12px;
    padding-bottom: 12px;
    line-height: 1.5;
    vertical-align: middle;
}

/* Loading animation for submit button */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.bx-spin {
    animation: spin 1s linear infinite;
}

/* Form success animation */
.contact-form .form-control.is-valid {
    animation: validPulse 0.6s ease-in-out;
}

@keyframes validPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

/* Form error animation */
.contact-form .form-control.is-invalid {
    animation: invalidShake 0.6s ease-in-out;
}

@keyframes invalidShake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Custom Search Styles */
.search-results-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.search-results-info .alert {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
}

.search-results-info h5 {
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.search-results-info p {
    margin-bottom: 8px;
    color: #666;
}

.search-form-section {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-form .form-control {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px 15px;
    font-size: 14px;
}

.search-form .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, .25);
}

.search-form .default-btn {
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

/* Unit Card Styles */
.unit-location {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #666;
    font-size: 13px;
}

.unit-location i {
    margin-right: 5px;
    color: #007bff;
}

.unit-info {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #666;
    font-size: 13px;
}

.unit-info i {
    margin-right: 5px;
    color: #28a745;
}

.unit-description {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.unit-description p {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-form .row {
        margin: 0;
    }

    .search-form .col-lg-5,
    .search-form .col-lg-4,
    .search-form .col-lg-3,
    .search-form .col-md-6,
    .search-form .col-md-4,
    .search-form .col-md-2 {
        padding: 0 5px;
        margin-bottom: 10px;
    }

    .search-form .default-btn {
        width: 100%;
    }
}

/* Enhanced product card styling */
.single-product-box {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.single-product-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-content h3 {
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-content h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-content h3 a:hover {
    color: #007bff;
}

.price .new {
    font-size: 18px;
    font-weight: 600;
    color: #007bff;
}

.price .old {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
}