/* 🎨 Formazing Custom Styles */

/* === GLOBAL STYLES === */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    line-height: 1.6;
}

/* === LOGIN PAGE === */
.bg-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.min-vh-100 {
    min-height: 100vh !important;
}

/* Cards with enhanced shadows */
.card {
    border-radius: 15px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

/* === DASHBOARD STATS === */
.card .display-4 {
    opacity: 0.8;
}

.card-body h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* === NAVIGATION === */
.navbar-brand {
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    border-radius: 8px;
    margin: 0 4px;
    transition: background-color 0.2s ease;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
}

/* === TABLES === */
.table {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.table th {
    border-top: none;
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    padding: 1rem 0.75rem;
}

.table td {
    vertical-align: middle;
    padding: 1rem 0.75rem;
    border-top: 1px solid #f1f1f1;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* === BADGES === */
.badge {
    font-size: 0.75rem;
    padding: 0.4em 0.8em;
    font-weight: 500;
}

/* Custom badge colors */
.bg-purple {
    background-color: #6f42c1 !important;
    color: white !important;
}

.bg-pink {
    background-color: #d63384 !important;
    color: white !important;
}

.bg-brown {
    background-color: #795548 !important;
    color: white !important;
}

.text-bg-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}

.text-bg-dark {
    background-color: #212529 !important;
    color: white !important;
}

/* === BUTTONS === */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-group-sm > .btn {
    font-size: 0.8rem;
}

/* === TABS === */
.nav-tabs .nav-link {
    border-radius: 8px 8px 0 0;
    border: 1px solid transparent;
    color: #6c757d;
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    background-color: white;
    border-color: #dee2e6 #dee2e6 white;
    color: var(--primary-color);
}

.nav-tabs .nav-link:hover {
    border-color: #e9ecef #e9ecef white;
    color: var(--primary-color);
}

/* === ALERTS === */
.alert {
    border: none;
    border-radius: 10px;
    font-weight: 500;
}

.alert i {
    margin-right: 8px;
}

/* === MODALS === */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal-header {
    border-bottom: 1px solid #f1f1f1;
    border-radius: 15px 15px 0 0;
}

.modal-footer {
    border-top: 1px solid #f1f1f1;
    border-radius: 0 0 15px 15px;
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card, .alert {
    animation: fadeIn 0.3s ease-out;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .card-body {
        padding: 2rem 1.5rem;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
    
    .btn-group-sm > .btn {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
}

/* === UTILITY CLASSES === */
.text-monospace {
    font-family: 'Courier New', monospace !important;
}

.shadow-sm {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
}

.border-0 {
    border: none !important;
}

/* === STATUS INDICATORS === */
.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.status-programmata { background-color: var(--warning-color); }
.status-calendarizzata { background-color: var(--info-color); }
.status-conclusa { background-color: var(--success-color); }

/* === LOADING STATES === */
.spinner-border {
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

/* === DARK MODE SUPPORT (future enhancement) === */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles would go here */
}