/* BadCulture Hub - Custom Styles */

/* ==================== Base ==================== */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ==================== Navigation Tabs ==================== */
.tab-btn {
    transition: all 0.2s ease;
}

.tab-btn:hover {
    transform: translateY(-1px);
}

.tab-btn.active {
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

/* ==================== Cards ==================== */
.card {
    background: #1f2937;
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ==================== Priority Badges ==================== */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-high {
    background: #fecaca;
    color: #991b1b;
}

.badge-medium {
    background: #fef08a;
    color: #854d0e;
}

.badge-low {
    background: #bbf7d0;
    color: #166534;
}

.badge-learning {
    background: #bfdbfe;
    color: #1e40af;
}

.badge-practicing {
    background: #e9d5ff;
    color: #6b21a8;
}

.badge-ready {
    background: #bbf7d0;
    color: #166534;
}

/* ==================== Buttons ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-success {
    background: #16a34a;
    color: white;
}

.btn-success:hover {
    background: #15803d;
}

.btn-danger {
    background: #dc2626;
    color: white;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-secondary {
    background: #4b5563;
    color: white;
}

.btn-secondary:hover {
    background: #374151;
}

.btn-purple {
    background: #7c3aed;
    color: white;
}

.btn-purple:hover {
    background: #6d28d9;
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

/* ==================== Forms ==================== */
.form-input {
    width: 100%;
    background: #374151;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    border: 1px solid #4b5563;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    border-color: #3b82f6;
}

.form-input::placeholder {
    color: #9ca3af;
}

/* ==================== Attendance Buttons ==================== */
.attendance-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.attendance-btn.attending {
    background: #16a34a;
    color: white;
}

.attendance-btn.not-attending {
    background: #dc2626;
    color: white;
}

.attendance-btn.maybe {
    background: #ca8a04;
    color: white;
}

.attendance-btn:not(.attending):not(.not-attending):not(.maybe) {
    background: #374151;
    color: #9ca3af;
    border-color: #4b5563;
}

.attendance-btn:hover {
    transform: scale(1.05);
}

/* ==================== Progress Indicator ==================== */
.progress-bar {
    height: 0.5rem;
    background: #374151;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 9999px;
    transition: width 0.3s ease;
}

/* ==================== Setlist ==================== */
.setlist-item {
    background: #374151;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: grab;
    transition: all 0.2s ease;
}

.setlist-item:hover {
    background: #4b5563;
}

.setlist-item.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.setlist-number {
    background: #2563eb;
    color: white;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

/* ==================== Gig Card ==================== */
.gig-card {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-left: 4px solid #3b82f6;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.gig-card.upcoming {
    border-left-color: #16a34a;
}

.gig-card.past {
    border-left-color: #6b7280;
    opacity: 0.7;
}

/* ==================== Poll ==================== */
.poll-option {
    background: #374151;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.poll-option:hover {
    background: #4b5563;
}

.poll-option.voted {
    border: 2px solid #3b82f6;
}

.poll-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: rgba(59, 130, 246, 0.2);
    transition: width 0.3s ease;
    z-index: 0;
}

.poll-option-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==================== Finance ==================== */
.finance-positive {
    color: #22c55e;
}

.finance-negative {
    color: #ef4444;
}

.finance-card {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
}

.finance-card h3 {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.finance-card .amount {
    font-size: 1.875rem;
    font-weight: 700;
}

/* ==================== Song Progress ==================== */
.member-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
}

.member-avatar {
    width: 1.5rem;
    height: 1.5rem;
    background: #3b82f6;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 600;
    color: white;
}

.progress-select {
    background: #374151;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid #4b5563;
    font-size: 0.75rem;
    cursor: pointer;
}

/* ==================== BPM Display ==================== */
.bpm-display {
    background: #374151;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-family: monospace;
    font-size: 0.875rem;
    color: #fbbf24;
}

/* ==================== Notifications ==================== */
.notification-bell {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    background: #ef4444;
    color: white;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 600;
}

/* ==================== Animations ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* ==================== Scrollbar ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
    .tab-btn span:not(.tab-icon) {
        display: none;
    }

    .card {
        padding: 1rem;
    }
}

/* ==================== Toast Notifications ==================== */
.toast-container {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: #1f2937;
    border: 1px solid #374151;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s ease;
}

.toast.success {
    border-left: 4px solid #16a34a;
}

.toast.error {
    border-left: 4px solid #dc2626;
}

.toast.info {
    border-left: 4px solid #3b82f6;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
