/* assets/css/frontend.css */

/* ========================================
   NP-Booking Frontend Styles
   All interfaces share these base styles
   ======================================== */

/* ----- Reset & Base ----- */
.npb-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: #1a1a2e;
    line-height: 1.6;
}

.npb-wrapper * {
    box-sizing: border-box;
}

/* ----- Buttons ----- */
.npb-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #10b981;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.npb-btn-primary:hover {
    background: #059669;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.npb-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.npb-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.npb-btn-secondary:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.npb-btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.npb-btn-danger:hover {
    background: #fecaca;
}

.npb-btn-small {
    padding: 6px 14px;
    font-size: 12px;
}

/* ----- Notices ----- */
.npb-notice {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    border-left: 4px solid;
}

.npb-notice-success {
    background: #d1fae5;
    color: #065f46;
    border-left-color: #10b981;
}

.npb-notice-error {
    background: #fee2e2;
    color: #991b1b;
    border-left-color: #ef4444;
}

.npb-notice-warning {
    background: #fed7aa;
    color: #92400e;
    border-left-color: #f59e0b;
}

.npb-notice-info {
    background: #dbeafe;
    color: #1e40af;
    border-left-color: #3b82f6;
}

/* ----- Status Badges ----- */
.npb-status-badge {
    display: inline-block;
    padding: 3px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

.npb-status-badge.status-pending {
    background: #dbeafe;
    color: #1e40af;
}

.npb-status-badge.status-tutor_review {
    background: #dbeafe;
    color: #1e40af;
}

.npb-status-badge.status-admin_review {
    background: #dbeafe;
    color: #1e40af;
}

.npb-status-badge.status-confirmed {
    background: #d1fae5;
    color: #065f46;
}

.npb-status-badge.status-awaiting_payment {
    background: #fed7aa;
    color: #92400e;
}

.npb-status-badge.status-completed {
    background: #d1fae5;
    color: #065f46;
}

.npb-status-badge.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.npb-status-badge.status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.npb-status-badge.status-disputed {
    background: #fce4ec;
    color: #c62828;
}

/* ----- Empty State ----- */
.npb-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.npb-empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.npb-empty-state p {
    margin: 0;
}

.npb-empty-sub {
    font-size: 13px;
    color: #9ca3af;
    margin-top: 4px;
}

/* ----- Messages ----- */
.npb-message-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.npb-message-item {
    padding: 14px 16px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #d1d5db;
    position: relative;
}

.npb-message-item.unread {
    border-left-color: #10b981;
    background: #f0fdf4;
}

.npb-message-item .npb-unread-dot {
    display: none;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    margin-right: 8px;
}

.npb-message-item.unread .npb-unread-dot {
    display: inline-block;
}

.npb-message-item strong {
    color: #1a1a2e;
}

.npb-message-time {
    font-size: 12px;
    color: #6b7280;
    margin-left: 10px;
}

.npb-message-item p {
    margin: 6px 0 0;
    color: #374151;
    font-size: 14px;
}

/* ----- Loading ----- */
.npb-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #6b7280;
}

.npb-loading .spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #e5e7eb;
    border-top-color: #10b981;
    border-radius: 50%;
    animation: npb-spin 0.8s linear infinite;
    margin-right: 12px;
}

@keyframes npb-spin {
    to { transform: rotate(360deg); }
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
    .npb-btn-primary,
    .npb-btn-secondary,
    .npb-btn-danger {
        width: 100%;
        justify-content: center;
    }
    
    .npb-notice {
        font-size: 14px;
        padding: 12px 14px;
    }
}

/* ----- Utility ----- */
.npb-text-center {
    text-align: center;
}

.npb-text-muted {
    color: #6b7280;
}

.npb-mt-10 { margin-top: 10px; }
.npb-mt-20 { margin-top: 20px; }
.npb-mb-10 { margin-bottom: 10px; }
.npb-mb-20 { margin-bottom: 20px; }

.npb-flex {
    display: flex;
    align-items: center;
    gap: 10px;
}

.npb-flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.npb-gap-10 { gap: 10px; }
.npb-gap-20 { gap: 20px; }

.npb-hidden {
    display: none !important;
}


