/**
 * BrandBrahma Seller Module - Main Styles
 */

:root {
    --bb-primary: #6366f1;
    --bb-primary-dark: #4f46e5;
    --bb-success: #10b981;
    --bb-warning: #f59e0b;
    --bb-danger: #ef4444;
    --bb-text: #1f2937;
    --bb-text-light: #6b7280;
    --bb-border: #e5e7eb;
    --bb-bg: #f9fafb;
    --bb-white: #ffffff;
    --bb-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --bb-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Dashboard Container */
.bb-unified-dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Header */
.bb-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--bb-border);
}

.bb-welcome h1 {
    font-size: 2rem;
    color: var(--bb-text);
    margin: 0 0 0.5rem 0;
}

.bb-credits-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, var(--bb-primary), var(--bb-primary-dark));
    color: white;
    border-radius: 50px;
    font-size: 1rem;
}

.bb-credits-display .icon {
    font-size: 1.5rem;
}

.bb-credits-display .amount {
    font-weight: 700;
    font-size: 1.25rem;
}

.bb-credits-display .bb-btn-small {
    margin-left: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s;
}

.bb-credits-display .bb-btn-small:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Mode Toggle */
.bb-mode-toggle {
    display: flex;
    gap: 0.5rem;
    background: var(--bb-bg);
    padding: 0.5rem;
    border-radius: 50px;
    box-shadow: var(--bb-shadow);
}

.bb-mode-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    font-weight: 500;
    color: var(--bb-text-light);
}

.bb-mode-btn .icon {
    font-size: 1.25rem;
}

.bb-mode-btn.active {
    background: var(--bb-white);
    color: var(--bb-primary);
    box-shadow: var(--bb-shadow);
}

.bb-mode-btn:hover:not(.active) {
    background: rgba(99, 102, 241, 0.1);
}

/* Stats Grid */
.bb-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.bb-stat-card {
    background: var(--bb-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--bb-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.bb-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bb-shadow-lg);
}

.bb-stat-card.highlight {
    background: linear-gradient(135deg, var(--bb-primary), var(--bb-primary-dark));
    color: white;
}

.bb-stat-card .icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.bb-stat-card .value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.bb-stat-card .label {
    color: var(--bb-text-light);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bb-stat-card.highlight .label,
.bb-stat-card.highlight .sub-label {
    color: rgba(255, 255, 255, 0.9);
}

.bb-stat-card .sub-label {
    color: var(--bb-text-light);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.bb-stat-card .action-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--bb-primary);
    text-decoration: none;
    font-weight: 500;
}

.bb-stat-card.highlight .action-link {
    color: white;
}

/* Quick Actions */
.bb-quick-actions {
    margin-bottom: 2rem;
}

.bb-quick-actions h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--bb-text);
}

.bb-action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.bb-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--bb-white);
    border: 2px solid var(--bb-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--bb-text);
    transition: all 0.3s;
    cursor: pointer;
}

.bb-action-btn:hover {
    border-color: var(--bb-primary);
    transform: translateY(-2px);
    box-shadow: var(--bb-shadow-lg);
}

.bb-action-btn.primary {
    background: linear-gradient(135deg, var(--bb-primary), var(--bb-primary-dark));
    color: white;
    border-color: var(--bb-primary);
}

.bb-action-btn .icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.bb-action-btn .label {
    font-weight: 600;
    font-size: 1rem;
}

.bb-action-btn .cost,
.bb-action-btn .reward {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    opacity: 0.8;
}

/* Section Styles */
.bb-section {
    background: var(--bb-white);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--bb-shadow);
}

.bb-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--bb-border);
}

.bb-section-header h2 {
    font-size: 1.25rem;
    color: var(--bb-text);
    margin: 0;
}

.bb-section-header .view-all {
    color: var(--bb-primary);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.bb-section-header .view-all:hover {
    opacity: 0.8;
}

/* Table Styles */
.bb-table {
    width: 100%;
    border-collapse: collapse;
}

.bb-table thead tr {
    background: var(--bb-bg);
}

.bb-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--bb-text-light);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bb-table td {
    padding: 1rem;
    border-top: 1px solid var(--bb-border);
}

.bb-table tr:hover {
    background: var(--bb-bg);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-active {
    background: #d1fae5;
    color: #065f46;
}

.status-completed {
    background: #dbeafe;
    color: #1e40af;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-sold {
    background: #e0e7ff;
    color: #3730a3;
}

/* Buttons */
.bb-btn-primary,
.bb-btn-secondary,
.bb-btn-small {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 1rem;
}

.bb-btn-primary {
    background: var(--bb-primary);
    color: white;
}

.bb-btn-primary:hover {
    background: var(--bb-primary-dark);
}

.bb-btn-secondary {
    background: var(--bb-bg);
    color: var(--bb-text);
    border: 1px solid var(--bb-border);
}

.bb-btn-secondary:hover {
    background: var(--bb-border);
}

.bb-btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Modal */
.bb-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bb-modal-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.bb-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--bb-text-light);
}

.bb-modal-close:hover {
    color: var(--bb-text);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--bb-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--bb-border);
    border-radius: 8px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--bb-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--bb-text-light);
    font-size: 0.875rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Empty State */
.bb-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--bb-text-light);
}

.bb-empty-state p {
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .bb-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .bb-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .bb-mode-toggle {
        width: 100%;
    }
    
    .bb-mode-btn {
        flex: 1;
        justify-content: center;
    }
}
