/* ============================================
   COMPONENTS.CSS - Component-Specific Styles
   ============================================ */

/* Card Styles */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: 0 10px 40px var(--shadow-color);
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-item.active {
    color: #6366f1;
}

.nav-item i {
    font-size: 22px;
    margin-bottom: 4px;
}

.nav-item span {
    font-size: 11px;
    font-weight: 500;
}

/* Poll Options */
.poll-option {
    background: var(--poll-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.poll-option:hover {
    background: var(--poll-hover-bg);
    border-color: var(--border-hover);
}

.poll-option.selected {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-color: #6366f1;
}

/* Progress Bar */
.progress-bar {
    height: 6px;
    background: var(--progress-bg);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
    transition: width 0.5s ease;
}

/* Input Styles */
input,
select,
textarea {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #6366f1;
    background: var(--input-focus-bg);
}

/* Loading Overlay */
.loading {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--loading-bg);
    backdrop-filter: blur(10px);
    z-index: 200;
    align-items: center;
    justify-content: center;
}

.loading.show {
    display: flex;
}

/* Attendee Card */
.attendee-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 12px;
    transition: all 0.3s ease;
}

.attendee-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
}

/* Avatar */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.badge-paid {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.badge-approved {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}