/**
 * Seminar Registration System - Styles
 * Modern, vibrant design with animations
 */

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --success: #48bb78;
    --danger: #f56565;
    --warning: #ed8936;
    --info: #4299e1;

    --bg-light: #f7fafc;
    --bg-dark: #1a202c;
    --text-light: #ffffff;
    --text-dark: #2d3748;
    --text-gray: #718096;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === Google Fonts === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* === Container === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Special container for centered pages */
.registration-page .container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-login .container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === Registration Page === */
.registration-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.registration-page::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.registration-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    width: 100%;
    position: relative;
    z-index: 1;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    text-align: center;
    margin-bottom: 32px;
}

.logo-icon {
    font-size: 64px;
    margin-bottom: 16px;
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.logo h1 {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-text {
    text-align: center;
    margin-bottom: 32px;
}

.welcome-text h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.welcome-text p {
    color: var(--text-gray);
    font-size: 16px;
}

/* === Form Styles === */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
    background: white;
}

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

.form-group.focused input {
    border-color: var(--primary);
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

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

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #e2e8f0;
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: #cbd5e0;
}

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

.btn-danger:hover {
    background: #e53e3e;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--radius-sm);
}

.btn-icon:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
}

.footer-text {
    text-align: center;
    margin-top: 24px;
    color: var(--text-gray);
    font-size: 14px;
}

/* === Participant Page === */
.participant-page {
    position: relative;
    min-height: 100vh;
    overflow-y: auto;
}

.participant-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 0;
}

.participant-card {
    background: #f5f4f2;
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-xl);
    max-width: 700px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.participant-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 3px solid;
    margin-bottom: 24px;
}

.team-badge {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-lg);
}

.team-icon {
    font-size: 40px;
}

.participant-info h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.team-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.label-text {
    color: var(--text-gray);
}

.team-name {
    font-weight: 700;
    font-size: 18px;
}

.success-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f0fdf4;
    border: 2px solid var(--success);
    border-radius: var(--radius-md);
    color: var(--success);
    font-weight: 600;
    margin-bottom: 32px;
}

.event-plan-section {
    margin-bottom: 32px;
}

.event-plan-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.event-plan-image img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.no-plan {
    padding: 40px;
    text-align: center;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    color: var(--text-gray);
}

.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.info-icon {
    font-size: 32px;
}

.info-label {
    font-size: 12px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 16px;
    font-weight: 600;
}

.actions {
    text-align: center;
}

/* === Admin Pages === */
.admin-page {
    background: #f8f9fa;
    min-height: 100vh;
}

.admin-header {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: white;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 18px;
}

.logo-icon {
    font-size: 24px;
}

.admin-badge {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.admin-nav {
    display: flex;
    gap: 8px;
    flex: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-weight: 500;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    color: white;
    background: rgba(102, 126, 234, 0.3);
}

.admin-actions {
    display: flex;
    gap: 8px;
}

.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px;
}

.page-header {
    margin-bottom: 32px;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.page-header p {
    color: var(--text-gray);
    font-size: 16px;
}

.section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.section h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
}

/* === Statistics === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.stat-label {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
}

/* === Team Distribution === */
.team-distribution {
    display: grid;
    gap: 16px;
}

.team-stat-card {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.team-stat-header {
    padding: 16px 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.team-stat-name {
    font-weight: 700;
    font-size: 16px;
}

.team-stat-count {
    font-size: 18px;
    font-weight: 800;
}

.team-stat-progress {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    transition: width 0.8s ease-out;
}

.progress-label {
    font-weight: 700;
    color: var(--text-gray);
    min-width: 50px;
    text-align: right;
}

/* === Quick Actions === */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.action-card {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.action-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.action-icon {
    font-size: 40px;
}

.action-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.action-content p {
    color: var(--text-gray);
    font-size: 14px;
}

/* === Forms === */
.team-form {
    background: var(--bg-light);
    padding: 24px;
    border-radius: var(--radius-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 16px;
    align-items: end;
}

.color-input-group {
    display: flex;
    gap: 8px;
}

.color-input-group input[type="color"] {
    width: 60px;
    height: 46px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.color-text-input {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

/* === Teams Grid === */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.team-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.team-card-header {
    padding: 20px;
    color: white;
}

.team-card-header h3 {
    font-size: 20px;
    margin-bottom: 4px;
}

.team-count {
    font-size: 14px;
    opacity: 0.9;
}

.team-card-body {
    padding: 20px;
    background: white;
}

.team-info {
    margin-bottom: 16px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f7fafc;
}

.info-row .label {
    color: var(--text-gray);
    font-size: 14px;
}

.info-row .value {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.color-preview {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.team-actions {
    display: flex;
    gap: 8px;
}

.team-actions .btn {
    flex: 1;
}

/* === Messages === */
.message {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-weight: 500;
}

.message-success {
    background: #f0fdf4;
    color: var(--success);
    border: 2px solid var(--success);
}

.message-error {
    background: #fff5f5;
    color: var(--danger);
    border: 2px solid var(--danger);
}

.error-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #fff5f5;
    border: 2px solid var(--danger);
    border-radius: var(--radius-md);
    color: var(--danger);
    margin-bottom: 24px;
}

/* === Empty States === */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-gray);
    margin-bottom: 24px;
}

/* === Tables === */
.table-container {
    overflow-x: auto;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
}

.users-table thead {
    background: var(--bg-light);
}

.users-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.users-table td {
    padding: 16px;
    border-bottom: 1px solid #f7fafc;
}

.users-table tbody tr:hover {
    background: #f7fafc;
}

.user-name {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
}

.team-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.team-badge-empty {
    color: var(--text-gray);
    font-style: italic;
}

code {
    background: #f7fafc;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-group label {
    font-weight: 600;
    font-size: 14px;
}

.filter-group select {
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-family: inherit;
}

.filter-info {
    color: var(--text-gray);
    font-size: 14px;
}

.table-actions {
    margin-top: 16px;
    text-align: right;
}

/* === Modal === */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease-out;
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 24px;
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-gray);
    transition: var(--transition);
}

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

.modal form {
    padding: 24px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* === QR Code === */
.qr-container {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 32px;
    align-items: start;
}

.qr-code {
    padding: 20px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.qr-info h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.url-display {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.url-display input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.qr-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.registration-toggle {
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.toggle-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.toggle-switch input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.toggle-slider {
    width: 50px;
    height: 28px;
    background: #cbd5e0;
    border-radius: 14px;
    position: relative;
    transition: var(--transition);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: var(--transition);
}

.toggle-switch input:checked+.toggle-slider {
    background: var(--success);
}

.toggle-switch input:checked+.toggle-slider::before {
    transform: translateX(22px);
}

.toggle-label {
    font-weight: 600;
}

/* === File Upload === */
.upload-section {
    margin-top: 24px;
}

.file-upload {
    position: relative;
    margin-bottom: 16px;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    border: 3px dashed #cbd5e0;
    border-radius: var(--radius-md);
    background: var(--bg-light);
    cursor: pointer;
    transition: var(--transition);
}

.file-upload-label:hover {
    border-color: var(--primary);
    background: #f0f4ff;
}

.file-upload-label svg {
    margin-bottom: 16px;
    color: var(--text-gray);
}

.file-upload-label span {
    font-weight: 600;
    margin-bottom: 4px;
}

.file-upload-label small {
    color: var(--text-gray);
    font-size: 14px;
}

.image-preview {
    margin-bottom: 16px;
}

.image-preview img {
    max-width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.current-plan {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 2px solid #e2e8f0;
}

.plan-preview {
    margin: 16px 0;
}

.plan-preview img {
    max-width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

/* === Admin Login === */
.admin-login {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
}

.login-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-xl);
    max-width: 450px;
    width: 100%;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.admin-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-header p {
    color: var(--text-gray);
}

.back-link {
    text-align: center;
    margin-top: 24px;
}

.back-link a {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
}

.back-link a:hover {
    color: var(--primary);
}

/* === Responsive === */
@media (max-width: 768px) {
    .registration-card {
        padding: 32px 24px;
    }

    .participant-card {
        padding: 24px;
    }

    .participant-header {
        flex-direction: column;
        text-align: center;
    }

    .admin-header-content {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-nav {
        flex-direction: column;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .qr-container {
        grid-template-columns: 1fr;
    }

    .teams-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* === Reflection Section (комментарий + звёзды 1-5) === */
.reflection-section {
    margin-top: 32px;
    padding: 24px;
    padding-top: 28px;
    border-radius: var(--radius-lg);
    border-top: 1px solid rgba(0,0,0,0.08);
    background: rgba(0,0,0,0.04);
}

.reflection-section h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark, #1a1a1a);
}

.reflection-section label {
    color: var(--text-dark, #333);
}

.reflection-thanks {
    padding: 16px;
    background: rgba(0,0,0,0.05);
    border-radius: var(--radius-md);
}

.reflection-your-rating {
    margin-top: 8px;
    opacity: 0.85;
}

.reflection-form .form-group {
    margin-bottom: 20px;
}

.reflection-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,0,0,0.12);
    background: rgba(255,255,255,0.8);
    color: #1a1a1a;
    font-size: 16px;
    resize: vertical;
}

.reflection-form textarea::placeholder {
    color: #888;
}

.reflection-stars {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.reflection-stars .star-label {
    cursor: pointer;
    display: inline-block;
}

.reflection-stars .star-icon {
    font-size: 32px;
    color: rgba(0,0,0,0.25);
    transition: color 0.2s;
}

.reflection-stars input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.reflection-stars .star-label:hover .star-icon { color: #ffc107; }
.reflection-stars .star-label:has(input:checked) .star-icon { color: #ffc107; }
.reflection-stars[data-rating] .star-label:nth-child(-n+1) .star-icon { color: #ffc107; }
.reflection-stars[data-rating="2"] .star-label:nth-child(-n+2) .star-icon { color: #ffc107; }
.reflection-stars[data-rating="3"] .star-label:nth-child(-n+3) .star-icon { color: #ffc107; }
.reflection-stars[data-rating="4"] .star-label:nth-child(-n+4) .star-icon { color: #ffc107; }
.reflection-stars[data-rating="5"] .star-label:nth-child(-n+5) .star-icon { color: #ffc107; }

/* === Voting Styles === */

/* Voting Section */
.voting-section {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 2px solid #e2e8f0;
}

.voting-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.voting-instructions {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 24px;
    font-size: 16px;
}

/* Vote Result */
.vote-result {
    text-align: center;
}

.vote-success {
    margin-bottom: 24px;
}

.vote-success svg {
    color: var(--success);
    margin-bottom: 16px;
}

.vote-success h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.voted-team-card {
    background: var(--bg-light);
    border: 3px solid;
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-width: 400px;
    margin: 0 auto;
}

.voted-team-header {
    padding: 16px;
    color: white;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
}

.voted-rating {
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.rating-label {
    font-size: 14px;
    color: var(--text-gray);
}

.stars-display {
    display: flex;
    gap: 4px;
}

.stars-display .star {
    font-size: 32px;
    color: #e2e8f0;
}

.stars-display .star.filled {
    color: #f59e0b;
}

.rating-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

/* Voting Form */
.voting-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.team-select,
.rating-select {
    margin-bottom: 32px;
}

.team-select label,
.rating-select label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.teams-grid-vote {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.team-option {
    cursor: pointer;
}

.team-option input[type="radio"] {
    display: none;
}

.team-option-card {
    padding: 16px;
    border: 3px solid #e2e8f0;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.team-option-color {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.team-option input:checked+.team-option-card {
    border-width: 3px;
    box-shadow: var(--shadow-md);
    transform: scale(1.05);
}

.team-option:hover .team-option-card {
    border-color: var(--primary);
}

.team-option span {
    font-weight: 600;
    font-size: 14px;
}

/* Star Rating */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 8px;
    font-size: 48px;
    margin-bottom: 16px;
}

.star-rating input[type="radio"] {
    display: none;
}

.star-rating .star {
    cursor: pointer;
    color: #e2e8f0;
    transition: var(--transition);
}

.star-rating input:checked~.star,
.star-rating .star:hover,
.star-rating .star:hover~.star {
    color: #f59e0b;
}

.rating-description {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    min-height: 30px;
    display: none;
}

/* === Admin Voting Styles === */

/* Voting Control */
.voting-control {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.voting-status h2 {
    font-size: 18px;
    margin-bottom: 12px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 16px;
}

.status-indicator.active {
    background: #f0fdf4;
    color: var(--success);
    border: 2px solid var(--success);
}

.status-indicator.inactive {
    background: #fff5f5;
    color: var(--danger);
    border: 2px solid var(--danger);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-indicator.active .status-dot {
    background: var(--success);
}

.status-indicator.inactive .status-dot {
    background: var(--danger);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Ranking List */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ranking-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 20px;
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 24px;
    align-items: center;
    transition: var(--transition);
}

.ranking-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.ranking-card.no-votes {
    opacity: 0.6;
}

.ranking-position {
    text-align: center;
}

.medal {
    font-size: 48px;
}

.position-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-gray);
}

.ranking-team {
    display: flex;
    align-items: center;
    gap: 16px;
    border-left: 4px solid;
    padding-left: 16px;
}

.team-color-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.ranking-team h3 {
    font-size: 20px;
    font-weight: 700;
}

.ranking-stats {
    display: flex;
    gap: 24px;
    align-items: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-icon {
    font-size: 24px;
}

.stat-label-small {
    font-size: 12px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value-large {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
}

.stars-small {
    display: flex;
    gap: 2px;
}

.star-small {
    font-size: 20px;
    color: #e2e8f0;
}

.star-small.filled {
    color: #f59e0b;
}

/* Responsive Voting */
@media (max-width: 768px) {
    .voting-control {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .ranking-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .ranking-team {
        flex-direction: column;
        border-left: none;
        border-top: 4px solid;
        padding-left: 0;
        padding-top: 16px;
    }

    .ranking-stats {
        flex-direction: column;
        width: 100%;
    }

    .stat-item {
        width: 100%;
        justify-content: center;
    }

    .teams-grid-vote {
        grid-template-columns: 1fr;
    }
}

/* === Multi-Team Voting Styles === */

.teams-voting-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 24px;
}

.team-voting-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: var(--transition);
}

.team-voting-card.voted {
    background: #f0fdf4;
    border-color: var(--success);
}

.team-voting-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
    border-left: 4px solid;
    padding-left: 16px;
    margin-bottom: 16px;
}

.team-color-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.team-voting-header h3 {
    flex: 1;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.voted-checkmark {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--success);
    font-weight: 600;
    font-size: 14px;
}

.voted-checkmark svg {
    flex-shrink: 0;
}

/* Rating Numbers */
.rating-numbers {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.rating-number-option {
    cursor: pointer;
}

.rating-number-option input[type="radio"] {
    display: none;
}

.number-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    font-weight: 700;
    font-size: 18px;
    background: white;
    transition: var(--transition);
}

.rating-number-option:hover .number-circle {
    border-color: var(--primary);
    background: #f0f4ff;
    transform: scale(1.1);
}

.rating-number-option input:checked+.number-circle {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-color: var(--primary);
    transform: scale(1.15);
    box-shadow: var(--shadow-md);
}

.btn-vote {
    width: 100%;
}

/* Vote Result Display */
.team-vote-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: var(--radius-md);
}

.vote-rating-display {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 8px;
}

.rating-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating-max {
    font-size: 24px;
    color: var(--text-gray);
    font-weight: 600;
}

.vote-date {
    font-size: 14px;
    color: var(--text-gray);
    margin: 0;
}

/* Voting Summary */
.voting-summary {
    margin-top: 32px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    text-align: center;
}

.voting-summary p {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .team-voting-header {
        flex-wrap: wrap;
    }

    .rating-numbers {
        gap: 6px;
    }

    .number-circle {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .rating-number {
        font-size: 36px;
    }
}/* === Photo Gallery Styles === */

.file-upload-area {
    margin-bottom: 24px;
}

.file-upload-area input[type="file"] {
    display: none;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    border: 3px dashed #cbd5e0;
    border-radius: var(--radius-lg);
    background: var(--bg-light);
    cursor: pointer;
    transition: var(--transition);
}

.file-upload-label:hover {
    border-color: var(--primary);
    background: #f0f4ff;
}

.file-upload-label svg {
    color: var(--primary);
    margin-bottom: 20px;
}

.file-upload-label h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.file-upload-label p {
    color: var(--text-gray);
    margin-bottom: 8px;
}

.file-upload-label small {
    color: var(--text-gray);
    font-size: 13px;
}

/* Photo Preview Grid */
.photo-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.preview-item {
    aspect-ratio: 3/4;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-light);
    border: 2px solid #e2e8f0;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-header h2 {
    margin: 0;
}

/* Photos Grid */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.photo-card {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-light);
    border: 2px solid #e2e8f0;
    transition: var(--transition);
}

.photo-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.photo-image {
    width: 100%;
    height: 100%;
}

.photo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.photo-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    opacity: 0;
    transition: var(--transition);
}

.photo-card:hover .photo-actions {
    opacity: 1;
}

.btn-delete {
    background: var(--danger);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.btn-delete:hover {
    background: #e53e3e;
    transform: scale(1.1);
}

/* Page Header with Button */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

/* Responsive */
@media (max-width: 768px) {
    .photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .photo-preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .page-header {
        flex-direction: column;
        gap: 16px;
    }
}