/* site.css */

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Card Styles */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

/* Stat Cards */
.stat-card {
    border-radius: 15px;
    padding: 20px;
    color: #fff;
    transition: transform 0.3s;
}

    .stat-card:hover {
        transform: translateY(-5px);
    }

    .stat-card.primary {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }

    .stat-card.success {
        background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    }

    .stat-card.warning {
        background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    }

    .stat-card.info {
        background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    }

    .stat-card .stat-icon {
        font-size: 2.5rem;
        opacity: 0.8;
    }

    .stat-card .stat-value {
        font-size: 2rem;
        font-weight: 700;
    }

    .stat-card .stat-label {
        font-size: 0.9rem;
        opacity: 0.9;
    }

/* Table Styles */
.table-container {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 20px;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* Button Styles */
.btn-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #fff;
}

    .btn-gradient-primary:hover {
        background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%);
        color: #fff;
    }

.btn-gradient-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border: none;
    color: #fff;
}

    .btn-gradient-success:hover {
        background: linear-gradient(135deg, #0f8a80 0%, #32d970 100%);
        color: #fff;
    }

/* Status Badges */
.badge-vacant {
    background-color: #28a745;
}

.badge-occupied {
    background-color: #007bff;
}

.badge-for-sale {
    background-color: #ffc107;
    color: #212529;
}

.badge-for-rent {
    background-color: #17a2b8;
}

.badge-pending {
    background-color: #ffc107;
    color: #212529;
}

.badge-approved {
    background-color: #28a745;
}

.badge-rejected {
    background-color: #dc3545;
}

.badge-completed {
    background-color: #6c757d;
}

/* Unit Cards */
.unit-card {
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

    .unit-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }

    .unit-card .unit-image {
        height: 200px;
        object-fit: cover;
        width: 100%;
    }

    .unit-card .unit-placeholder {
        height: 200px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 3rem;
    }

    .unit-card .card-body {
        padding: 20px;
    }

    .unit-card .unit-number {
        font-size: 1.2rem;
        font-weight: 700;
        color: #333;
    }

    .unit-card .unit-type {
        font-size: 0.85rem;
        color: #666;
    }

    .unit-card .unit-details {
        margin-top: 10px;
        font-size: 0.9rem;
        color: #555;
    }

/* Image Carousel */
.carousel-container {
    border-radius: 10px;
    overflow: hidden;
}

    .carousel-container .carousel-item img {
        height: 400px;
        object-fit: cover;
    }

/* Form Styles */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: #667eea;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Modal Styles */
.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 0;
}

    .modal-header .btn-close {
        filter: brightness(0) invert(1);
    }

/* Loading Spinner */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner-custom {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

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

/* Empty State */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #666;
}

    .empty-state i {
        font-size: 4rem;
        color: #ddd;
        margin-bottom: 20px;
    }

    .empty-state h5 {
        color: #555;
    }

/* Wallet Card */
.wallet-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: #fff;
    padding: 30px;
}

    .wallet-card .balance-label {
        font-size: 0.9rem;
        opacity: 0.8;
    }

    .wallet-card .balance-amount {
        font-size: 2.5rem;
        font-weight: 700;
    }

/* Transaction List */
.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

    .transaction-item:last-child {
        border-bottom: none;
    }

    .transaction-item .transaction-icon {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
    }

        .transaction-item .transaction-icon.deposit {
            background-color: #d4edda;
            color: #28a745;
        }

        .transaction-item .transaction-icon.deduction {
            background-color: #f8d7da;
            color: #dc3545;
        }

    .transaction-item .amount.positive {
        color: #28a745;
        font-weight: 600;
    }

    .transaction-item .amount.negative {
        color: #dc3545;
        font-weight: 600;
    }

/* Action Buttons */
.action-buttons .btn {
    padding: 5px 10px;
    font-size: 0.85rem;
}

/* Search Box */
.search-box {
    position: relative;
}

    .search-box .form-control {
        padding-left: 40px;
        border-radius: 25px;
    }

    .search-box .search-icon {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #999;
    }

/* RTL Support */
[dir="rtl"] .search-box .form-control {
    padding-left: 15px;
    padding-right: 40px;
}

[dir="rtl"] .search-box .search-icon {
    left: auto;
    right: 15px;
}

[dir="rtl"] .me-2 {
    margin-right: 0 !important;
    margin-left: 0.5rem !important;
}

[dir="rtl"] .ms-2 {
    margin-left: 0 !important;
    margin-right: 0.5rem !important;
}
