/* ============================================ */
/* SISTEMA DE CRONOGRAMA - TEMA VERDE */
/* ============================================ */

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

.card {
    border-radius: 8px;
}

.card-header {
    border-radius: 8px 8px 0 0 !important;
}

.progress {
    border-radius: 10px;
}

.progress-bar {
    border-radius: 10px;
}

.navbar-brand {
    font-weight: 600;
}

.table th {
    font-weight: 600;
    font-size: 0.9rem;
}

.badge {
    padding: 0.35em 0.65em;
    font-weight: 500;
}

/* Animações suaves */
.btn, .card, .alert {
    transition: all 0.3s ease;
}

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

/* ============================================ */
/* PERSONALIZAÇÃO - TEMA VERDE */
/* ============================================ */

/* Navbar verde */
.navbar.bg-primary,
.navbar-dark.bg-primary {
    background-color: #28a745 !important;
}

/* Botões primários verde */
.btn-primary {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #218838 !important;
    border-color: #1e7e34 !important;
}

.btn-outline-primary {
    color: #28a745 !important;
    border-color: #28a745 !important;
}

.btn-outline-primary:hover {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: white !important;
}

/* Cabeçalhos de card verde */
.card-header.bg-primary {
    background-color: #28a745 !important;
}

/* Links e textos primários verde */
.text-primary {
    color: #28a745 !important;
}

.bg-primary {
    background-color: #28a745 !important;
}

a {
    color: #28a745;
}

a:hover {
    color: #218838;
}

/* Progress bars verde */
.progress-bar.bg-primary {
    background-color: #28a745 !important;
}

/* Badges primários verde */
.badge.bg-primary {
    background-color: #28a745 !important;
}

/* Nav tabs */
.nav-tabs .nav-link.active {
    color: #28a745 !important;
    border-color: #dee2e6 #dee2e6 #fff !important;
}

.nav-tabs .nav-link:hover {
    border-color: #e9ecef #e9ecef #dee2e6;
    color: #28a745;
}

/* Form controls com foco verde */
.form-control:focus,
.form-select:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25);
}

.form-check-input:checked {
    background-color: #28a745;
    border-color: #28a745;
}

.form-check-input:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25);
}

/* Alerts */
.alert-primary {
    background-color: #d4edda !important;
    border-color: #c3e6cb !important;
    color: #155724 !important;
}

/* ============================================ */
/* SISTEMA DE TOAST - NOTIFICAÇÕES */
/* ============================================ */

#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    min-width: 300px;
    max-width: 400px;
    padding: 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    border-left: 4px solid;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-icon {
    font-size: 24px;
    margin-right: 12px;
    display: flex;
    align-items: center;
}

.toast-message {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.toast-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0;
    margin-left: 12px;
    line-height: 1;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #333;
}

/* Tipos de Toast */
.toast-success {
    border-left-color: #28a745;
}

.toast-success .toast-icon {
    color: #28a745;
}

.toast-error {
    border-left-color: #dc3545;
}

.toast-error .toast-icon {
    color: #dc3545;
}

.toast-warning {
    border-left-color: #ffc107;
}

.toast-warning .toast-icon {
    color: #ffc107;
}

.toast-info {
    border-left-color: #17a2b8;
}

.toast-info .toast-icon {
    color: #17a2b8;
}

/* ============================================ */
/* RESPONSIVIDADE */
/* ============================================ */

@media (max-width: 768px) {
    #toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: auto;
        max-width: none;
    }
    
    .table {
        font-size: 0.85rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* ============================================ */
/* IMPRESSÃO */
/* ============================================ */

@media print {
    .navbar, .btn, .card-footer {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000 !important;
    }
    
    #toast-container {
        display: none !important;
    }
}
