/* ==============================
   PULPRO Project - Estilos Custom
   ============================== */

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

main.col-md-9,
main.col-lg-10 {
    margin-top: 56px;
    padding-top: 1.5rem !important;
}

/* Sidebar */
#sidebar {
    border-right: 1px solid #dee2e6;
}

#sidebar .nav-link {
    color: #333;
    padding: 0.6rem 1rem;
    border-radius: 0.25rem;
    margin: 0.1rem 0.5rem;
    transition: background-color 0.2s;
}

#sidebar .nav-link:hover {
    background-color: #e9ecef;
}

#sidebar .nav-link.active {
    background-color: #0d6efd;
    color: #fff;
}

/* Cards */
.card {
    border: none;
    border-radius: 0.5rem;
}

.card-header {
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

/* Tablas */
.table th {
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    color: #6c757d;
}

/* Badges de estado */
.badge {
    font-weight: 500;
    font-size: 0.8rem;
}

/* Hilo de comentarios */
.comment-item {
    border-left: 3px solid #0d6efd;
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.comment-item .comment-meta {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Dashboard stats */
.stat-card {
    border-left: 4px solid;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card.primary { border-left-color: #0d6efd; }
.stat-card.success { border-left-color: #198754; }
.stat-card.warning { border-left-color: #ffc107; }
.stat-card.danger  { border-left-color: #dc3545; }

/* Archivos adjuntos */
.attachment-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.attachment-item:hover {
    background-color: #e9ecef;
}

/* Formularios */
.form-label {
    font-weight: 500;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 767.98px) {
    #sidebar {
        position: fixed;
        z-index: 1000;
        width: 250px;
        left: -250px;
        transition: left 0.3s;
    }

    #sidebar.show {
        left: 0;
    }
}
