/* General Wrappers */
.bb-user-dashboard-wrapper,
.bb-profile-edit-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    max-width: 1000px;
    margin: 30px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e1e8ed;
}

/* Headers */
.bb-dashboard-header,
.bb-profile-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #f0f3f6;
    padding-bottom: 20px;
}
.bb-dashboard-header h2,
.bb-profile-header h3 {
    margin: 0 0 8px 0;
    font-size: 24px;
    color: #1a202c;
    font-weight: 700;
}
.bb-subtitle {
    margin: 0;
    font-size: 14px;
    color: #718096;
}

/* Table styling */
.bb-table-container {
    overflow-x: auto;
    margin-top: 15px;
}
.bb-dashboard-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}
.bb-dashboard-table th {
    background-color: #f7fafc;
    color: #4a5568;
    font-weight: 600;
    padding: 12px 16px;
    border-bottom: 2px solid #edf2f7;
}
.bb-dashboard-table td {
    padding: 16px;
    border-bottom: 1px solid #edf2f7;
    color: #4a5568;
}
.bb-cell-name {
    font-weight: 600;
    color: #2d3748;
}

/* Action Buttons */
.bb-action-btn,
.bb-btn-primary,
.bb-save-btn {
    background-color: #3182ce;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}
.bb-action-btn:hover,
.bb-btn-primary:hover,
.bb-save-btn:hover {
    background-color: #2b6cb0;
}

/* Forms */
.bb-form-group {
    margin-bottom: 20px;
}
.bb-form-group label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #4a5568;
    margin-bottom: 6px;
}
.bb-form-group input[type="text"],
.bb-form-group input[type="email"],
.bb-form-group input[type="date"],
.bb-form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.bb-form-group input:focus,
.bb-form-group select:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
    outline: none;
}

/* Section titles */
.bb-section-title {
    margin: 30px 0 15px 0;
    font-size: 16px;
    color: #2d3748;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 8px;
}

/* Modal Popup */
.bb-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bb-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
}
.bb-modal-container {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    z-index: 1;
    animation: bbModalFadeIn 0.3s ease;
}
.bb-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #edf2f7;
}
.bb-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #2d3748;
}
.bb-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #a0aec0;
    line-height: 1;
}
.bb-modal-close:hover {
    color: #4a5568;
}
.bb-modal-body {
    padding: 24px;
}
.bb-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    border-top: 1px solid #edf2f7;
    padding-top: 16px;
}
.bb-cancel-btn {
    background-color: #edf2f7;
    color: #4a5568;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.bb-cancel-btn:hover {
    background-color: #e2e8f0;
}

/* Alerts */
.bb-alert {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 20px;
}
.bb-alert-success {
    background-color: #f0fff4;
    color: #38a169;
    border: 1px solid #c6f6d5;
}
.bb-alert-danger {
    background-color: #fff5f5;
    color: #e53e3e;
    border: 1px solid #fed7d7;
}

@keyframes bbModalFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
