/* Custom Styles per ROIGENDA */

/* Google Font - Manrope */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #0d6efd;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: #f8f9fa;
}

/* Override Bootstrap font */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.btn, .form-control, .form-select,
.nav-link, .navbar-brand, .badge,
.card-title, .card-text,
.table, .dropdown-item {
    font-family: var(--font-family);
}

/* Logo Text Style */
.brand-logo {
    font-weight: 800;
    letter-spacing: -0.5px;
}

.brand-logo .roi {
    color: #0d6efd;
}

.brand-logo .genda {
    color: #198754;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Buttons */
.btn {
    border-radius: 6px;
    padding: 0.5rem 1.2rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Tables */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: #6c757d;
}

/* Badges */
.badge {
    padding: 0.4rem 0.8rem;
    font-weight: 500;
    border-radius: 6px;
}

/* Forms */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* Stats Cards */
.stat-card {
    border-left: 4px solid var(--primary-color);
}

.stat-card.success {
    border-left-color: var(--success-color);
}

.stat-card.warning {
    border-left-color: var(--warning-color);
}

.stat-card.danger {
    border-left-color: var(--danger-color);
}

/* Progress bars */
.progress {
    height: 8px;
    border-radius: 10px;
}

/* Login/Register pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
footer {
    margin-top: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
}

/* Utility classes */
.cursor-pointer {
    cursor: pointer;
}

.hover-shadow:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Status badges colors */
.status-pianificazione {
    background-color: #6c757d;
}

.status-acquistato {
    background-color: #0dcaf0;
}

.status-in-ristrutturazione {
    background-color: #ffc107;
}

.status-in-vendita {
    background-color: #0d6efd;
}

.status-venduto {
    background-color: #198754;
}

.status-sospeso {
    background-color: #dc3545;
}

/* Charts */
canvas {
    max-height: 300px;
}

/* File upload */
.file-upload-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.file-upload-wrapper input[type=file] {
    font-size: 100px;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Empty states */
.empty-state {
    padding: 3rem 1rem;
    text-align: center;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    opacity: 0.5;
}

/* Info Boxes - Alternative agli alert per contenuti permanenti */
.info-box {
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid;
    border-radius: 8px;
    border-left: 4px solid;
}

.info-box-primary {
    background-color: #cfe2ff;
    border-color: #b6d4fe;
    border-left-color: #0d6efd;
    color: #084298;
}

.info-box-info {
    background-color: #cff4fc;
    border-color: #9eeaf9;
    border-left-color: #0dcaf0;
    color: #055160;
}

.info-box-success {
    background-color: #d1e7dd;
    border-color: #badbcc;
    border-left-color: #198754;
    color: #0f5132;
}

.info-box-warning {
    background-color: #fff3cd;
    border-color: #ffecb5;
    border-left-color: #ffc107;
    color: #664d03;
}

.info-box-danger {
    background-color: #f8d7da;
    border-color: #f5c2c7;
    border-left-color: #dc3545;
    color: #842029;
}

.info-box h6 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.info-box p:last-child,
.info-box ul:last-child {
    margin-bottom: 0;
}

.info-box .row {
    margin-top: 0;
}

.info-box i.bi {
    margin-right: 0.5rem;
}

/* Info box con icona grande */
.info-box-icon {
    display: flex;
    align-items: center;
}

.info-box-icon i {
    font-size: 2rem;
    margin-right: 1rem;
    opacity: 0.7;
}
