/* Main CSS for Molino RENTAL Admin */

/* Custom variables */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
    --highlight-color: #ffeeba;
}

/* Highlight effect for rows */
.highlight-row {
    animation: highlight-animation 2s ease-in-out;
}

@keyframes highlight-animation {
    0% { background-color: var(--highlight-color); }
    100% { background-color: transparent; }
}

/* General */
body {
    min-height: 100vh;
    background-color: #f5f5f5;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Login page */
.login-form {
    max-width: 400px;
    padding: 15px;
    margin: 0 auto;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Dashboard cards */
.dashboard-card {
    transition: transform 0.2s ease;
    margin-bottom: 1.5rem;
}

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

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Data tables */
.table-container {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.table-actions {
    white-space: nowrap;
}

/* Forms */
.form-container {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.required:after {
    content: ' *';
    color: red;
}

/* Modals */
.modal-header {
    background-color: var(--primary-color);
    color: white;
}

.modal-close {
    color: white;
}

/* Image gallery */
.property-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.property-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 0.25rem;
    cursor: pointer;
}

.property-thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.25rem;
    transition: transform 0.2s ease;
    border: 1px solid #ddd;
}

.property-thumbnail:hover {
    transform: scale(1.1);
}

.no-image-placeholder {
    width: 80px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    border: 1px solid #ddd;
    color: #adb5bd;
}

.no-image-placeholder i {
    font-size: 1.5rem;
}

.image-preview {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 0.25rem;
    margin-top: 0.5rem;
}

/* Status badges */
.status-badge {
    padding: 0.35em 0.65em;
    border-radius: 10rem;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
}

.status-reported {
    background-color: #ffc107;
    color: #212529;
}

.status-assigned {
    background-color: #17a2b8;
    color: white;
}

.status-in-progress {
    background-color: #007bff;
    color: white;
}

.status-waiting-parts {
    background-color: #6c757d;
    color: white;
}

.status-completed {
    background-color: #28a745;
    color: white;
}

.status-cancelled {
    background-color: #dc3545;
    color: white;
}

/* Quote builder */
.quote-items-container {
    max-height: 300px;
    overflow-y: auto;
}

.quote-summary {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .property-image {
        width: 100px;
        height: 100px;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
    
    .card-title {
        font-size: 1.25rem;
    }
}

/* File input customization */
.custom-file-upload {
    display: block;
    border: 1px dashed #ccc;
    padding: 30px 15px;
    cursor: pointer;
    text-align: center;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.custom-file-upload:hover {
    background-color: #e9ecef;
}

.custom-file-upload i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Print styles for PDF export */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        padding: 0;
        margin: 0;
    }
    
    .container-fluid {
        width: 100%;
        padding: 0;
        margin: 0;
    }
}

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

.spinner-container {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
}

.spinner-text {
    margin-top: 1rem;
    font-weight: bold;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

/* Chart containers */
.chart-container {
    height: 300px;
    margin-bottom: 2rem;
}