* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%); min-height: 100vh; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
header { background: linear-gradient(90deg, #ea580c, #f59e0b); color: white; padding: 30px 0; position: relative; overflow: hidden; }
header h1 { font-size: 2.5rem; margin-bottom: 8px; }
header p { opacity: 0.9; font-size: 1.1rem; }
.nav { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.btn { display: inline-block; padding: 10px 24px; background: rgba(255,255,255,0.2); color: white; text-decoration: none; border-radius: 8px; border: 1px solid rgba(255,255,255,0.3); transition: all 0.2s; cursor: pointer; font-size: 1rem; }
.btn:hover { background: rgba(255,255,255,0.3); }
.btn-primary { background: linear-gradient(90deg, #f97316, #f59e0b); color: white; border: none; }
.btn-primary:hover { background: linear-gradient(90deg, #ea580c, #d97706); }
.btn-danger { background: #ef4444; color: white; border: none; }
.btn-danger:hover { background: #dc2626; }
.btn-small { padding: 6px 14px; font-size: 0.85rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 24px; padding: 40px 0; }
.card { background: white; border-radius: 16px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); overflow: hidden; transition: box-shadow 0.2s; border: 1px solid #fed7aa; }
.card:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.card-header { padding: 24px 24px 0; display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.card-header h3 { font-size: 1.3rem; color: #1f2937; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; }
.badge-green { background: #dcfce7; color: #166534; }
.badge-gray { background: #f3f4f6; color: #6b7280; }

.card-body { padding: 16px 24px 24px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; font-size: 0.9rem; color: #4b5563; }
.info-grid div { display: flex; align-items: center; gap: 6px; }
.info-grid strong { color: #1f2937; }

.progress-bg { width: 100%; height: 8px; background: #f3f4f6; border-radius: 9999px; margin: 12px 0; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #f97316, #f59e0b); border-radius: 9999px; transition: width 0.3s; }

.aprasymas { color: #6b7283; font-size: 0.85rem; margin-top: 12px; line-height: 1.5; }

/* Modal */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 100; justify-content: center; align-items: center; padding: 20px; }
.modal.active { display: flex; }
.modal-content { background: white; border-radius: 16px; max-width: 600px; width: 100%; max-height: 90vh; overflow-y: auto; }
.modal-header { padding: 24px 24px 0; display: flex; justify-content: space-between; align-items: center; }
.modal-header h2 { font-size: 1.5rem; }
.close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #6b7280; padding: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 8px; }
.close:hover { background: #f3f4f6; }
.modal-body { padding: 24px; }

/* Form */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 0.9rem; color: #374151; }
.form-group label .req { color: #ef4444; }
input, textarea, select { width: 100%; padding: 10px 14px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 1rem; font-family: inherit; }
input:focus, textarea:focus, select:focus { outline: none; border-color: #f97316; ring: 2px solid #fed7aa; }
textarea { resize: vertical; }

.dalyviai-list { margin-top: 20px; }
.dalyvis { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #f9fafb; border-radius: 8px; margin-bottom: 6px; font-size: 0.9rem; }
.dalyvis .check { color: #22c55e; flex-shrink: 0; }
.dalyvis form { margin-left: auto; }

/* Admin */
.admin-header { background: white; border-bottom: 1px solid #e5e7eb; padding: 20px 0; }
.admin-header h1 { font-size: 1.5rem; }
.admin-nav { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.tabs { display: flex; gap: 4px; background: #f3f4f6; padding: 4px; border-radius: 8px; width: fit-content; margin-bottom: 24px; }
.tab { padding: 8px 20px; border-radius: 6px; cursor: pointer; border: none; background: none; font-size: 0.95rem; }
.tab.active { background: white; font-weight: 600; }

.tab-content { display: none; }
.tab-content.active { display: block; }

.admin-cards .card { margin-bottom: 16px; }
.admin-cards .card-body { padding: 20px 24px; }

.admin-table { width: 100%; border-collapse: collapse; background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.admin-table th, .admin-table td { padding: 12px 16px; text-align: left; font-size: 0.9rem; }
.admin-table th { background: #f9fafb; font-weight: 600; color: #4b5563; }
.admin-table tr { border-bottom: 1px solid #f3f4f6; }
.admin-table tr:last-child { border-bottom: none; }

.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 0.9rem; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

.login-box { max-width: 400px; margin: 80px auto; background: white; padding: 40px; border-radius: 16px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.login-box h2 { text-align: center; margin-bottom: 24px; }
.login-box .icon { width: 64px; height: 64px; background: #fff7ed; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 2rem; }

.empty { text-align: center; padding: 60px 20px; color: #6b7280; }
.empty .big-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.5; }

.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.actions form { display: inline; }

@media (max-width: 768px) {
    header h1 { font-size: 1.8rem; }
    .cards { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr; }
    .nav { flex-direction: column; align-items: stretch; text-align: center; }
    .admin-nav { flex-direction: column; align-items: stretch; }
    .admin-table { font-size: 0.8rem; }
    .admin-table th, .admin-table td { padding: 8px; }
}
