/*
 * components.css — Componentes reutilizables de Power Nutrition
 * Prefijo "pn-" para no colisionar con Bootstrap.
 * Usar con los partials de Views/Shared/Components/
 */

/* ============================================================
   PAGE HEADER — _PageHeader.cshtml
   ============================================================ */

.pn-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.pn-page-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pn-page-header-title h1 {
    font-size: 24px;
    font-weight: 500;
    color: #202124;
    margin: 0;
}

.pn-page-header-title .pn-header-icon {
    font-size: 22px;
    color: #4285f4;
}

.pn-page-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================================
   CARD CONTAINER — _CardContainer.cshtml
   ============================================================ */

.pn-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 24px;
    margin-bottom: 20px;
}

.pn-card-sm {
    padding: 16px;
    border-radius: 8px;
}

.pn-card-title {
    font-size: 16px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8eaed;
}

/* ============================================================
   FILTER BAR — _FilterBar.cshtml
   ============================================================ */

.pn-filter-bar {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
}

.pn-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pn-filter-group label {
    font-size: 12px;
    font-weight: 500;
    color: #5f6368;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.pn-filter-group input,
.pn-filter-group select {
    border: 1px solid #e8eaed;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    color: #202124;
    background: white;
    min-width: 150px;
}

.pn-filter-group input:focus,
.pn-filter-group select:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.15);
}

/* ============================================================
   EMPTY STATE — _EmptyState.cshtml
   ============================================================ */

.pn-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: #5f6368;
}

.pn-empty-state .pn-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.4;
}

.pn-empty-state h3 {
    font-size: 18px;
    font-weight: 500;
    color: #3c4043;
    margin-bottom: 8px;
}

.pn-empty-state p {
    font-size: 14px;
    color: #5f6368;
    max-width: 320px;
}

/* ============================================================
   CONFIRM MODAL — _ConfirmModal.cshtml
   ============================================================ */

.pn-confirm-modal .modal-header {
    border-bottom: none;
    padding-bottom: 0;
}

.pn-confirm-modal .modal-body {
    padding: 16px 24px 8px;
    font-size: 15px;
    color: #3c4043;
}

.pn-confirm-modal .modal-footer {
    border-top: none;
    padding-top: 0;
}

/* ============================================================
   BOTONES — clases base reutilizables
   ============================================================ */

.btn-pn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-pn:hover {
    text-decoration: none;
}

.btn-pn-primary {
    background-color: #4285f4;
    color: white;
}

.btn-pn-primary:hover {
    background-color: #3367d6;
    color: white;
}

.btn-pn-danger {
    background-color: #ea4335;
    color: white;
}

.btn-pn-danger:hover {
    background-color: #c5221f;
    color: white;
}

.btn-pn-secondary {
    background-color: #f1f3f4;
    color: #3c4043;
}

.btn-pn-secondary:hover {
    background-color: #e8eaed;
    color: #3c4043;
}

.btn-pn-outline {
    background-color: transparent;
    color: #4285f4;
    border: 1px solid #4285f4;
}

.btn-pn-outline:hover {
    background-color: rgba(66, 133, 244, 0.08);
    color: #4285f4;
}

/* ============================================================
   BADGES DE ESTADO
   ============================================================ */

.pn-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.pn-badge-success {
    background-color: #e6f4ea;
    color: #137333;
}

.pn-badge-warning {
    background-color: #fef7e0;
    color: #b06000;
}

.pn-badge-danger {
    background-color: #fce8e6;
    color: #c5221f;
}

.pn-badge-info {
    background-color: #e8f0fe;
    color: #1a73e8;
}

.pn-badge-neutral {
    background-color: #f1f3f4;
    color: #5f6368;
}
