/* Appended to assets/css/style.css */

/* Page fade-in effect */
body {
    /* opacity: 0; /* Set by JS initially */
    /* transition: opacity 0.5s ease-in-out; */
}
/* Using a wrapper for main content for fade-in to avoid FOUC on sidebar/nav */
.main-content-wrapper { /* This class needs to be added to the main content area in header.php */
    opacity: 0;
    transform: translateY(10px); /* Optional: slight upward animation */
    animation: fadeInContent 0.6s 0.2s ease-out forwards;
}

@keyframes fadeInContent {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Table row hover effect */
.table-hover tbody tr:hover {
    background-color: #f5f5f5; /* Light grey, adjust as needed */
    /* box-shadow: 0 2px 5px rgba(0,0,0,0.05); */
    /* transform: scale(1.01); */ /* Can be too much */
    transition: background-color 0.2s ease-in-out;
}

/* Button hover effects (Bootstrap already has some, this can enhance) */
.btn-primary:hover, .btn-info:hover, .btn-success:hover, .btn-warning:hover, .btn-danger:hover, .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}
.btn:active {
    transform: translateY(0px); /* Reset on click */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Card hover effect (subtle) */
.card.shadow-hover:hover { /* Add class 'shadow-hover' to cards you want this effect on */
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important; /* Bootstrap's shadow-lg */
    transition: box-shadow 0.2s ease-in-out;
}
/* Example: make all dashboard stat cards use this */
/* .col-xl-3.col-md-6 .card { transition: box-shadow 0.2s ease-in-out; } */
/* .col-xl-3.col-md-6 .card:hover { box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important; } */

/* Add some multicolor highlights - example for card headers */
/* This is very generic, specific design would be better */
.card-header .card-title i.bi-speedometer2 { color: #0d6efd; } /* Dashboard */
.card-header .card-title i.bi-info-circle-fill { color: #0dcaf0; } /* Business Info */
.card-header .card-title i.bi-file-person-fill { color: #6f42c1; } /* About */
.card-header .card-title i.bi-chat-square-quote-fill { color: #198754;} /* Testimonials */
.card-header .card-title i.bi-tags-fill { color: #fd7e14; } /* Categories */
.card-header .card-title i.bi-kanban-fill { color: #d63384; } /* Projects */
.card-header .card-title i.bi-gear-wide-connected { color: #20c997; } /* Services */
.card-header .card-title i.bi-telephone-inbound-fill { color: #ffc107; } /* Contact Settings */
.card-header .card-title i.bi-envelope-paper-fill { color: #6610f2; } /* Enquiries */
/* .card-header .card-title i.bi-folder-fill { color: #0d6efd; } */ /* File Manager V1 icon - removed for now */
.card-header .card-title i.bi-images { color: #dc3545; } /* Hero Sliders */


/* Loading spinner for AJAX (general class) */
.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: text-bottom;
    border: .2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
}
@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

/* Reduce opacity of all Bootstrap modal backdrops globally */
/* Default Bootstrap opacity is 0.5 */
.modal-backdrop {
    opacity: 0.25 !important; /* Adjust value as needed. !important may be required to override Bootstrap defaults. */
}

/* Styles for file_manager_full.php (V2) */
#fmFullFilePreviewImage {
    max-width: 100%;
    max-height: 70vh;
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
    background-color: #f8f9fa; /* Light background for letterboxing */
}

#fmFullFilePreviewModal .modal-body {
    overflow-y: auto;
    max-height: 80vh;
}

/* Ensure V2 preview modal is on top if opened from another modal (though less likely with popup workflow) */
#fmFullFilePreviewModal {
    z-index: 1070 !important;
}
/* Ensure V2 delete confirm modal is on top */
#fmFullDeleteConfirmModal {
    z-index: 1075 !important; /* Higher than preview modal if one could open on top of other */
}


/* Specific styling for file cards in V2 File Manager */
.fm-full-file-card .card-img-top,
.fm-full-file-card .text-center > i.bi {
    border-bottom: 1px solid #eee;
}

.fm-full-file-card .card-body {
    overflow: hidden; /* Ensure text-truncate works well */
}
