@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

:root {
    --bg-color: #ecf3ff;
    --text-color: #18181b;
    --accent-color: #6692f1;
    --card-bg-color: #f9fafb;

    --color-1: #3b82f6;
    --color-2: #ef4444;
    --color-3: #10b981;
    --color-4: #f59e0c;
    --color-5: #8b5cf6;
    --color-6: #ec4899;
    --color-7: #06b6d4;
    --color-8: #84cc16;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
    min-height: 100vh;
    padding: 1rem;
}

.container {
    max-width: 73vw;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 2rem;
}

.header h1 {
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.header p {
    color: #6b7280;
    max-width: 31.25vw;
    margin: 0 auto;
    line-height: 1.6;
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

@media (max-width: 1024px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-content {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.btn-danger {
    background: #ef4444;
    color: white;
    padding: 0.5rem;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-warning {
    background: #f59e0b;
    color: white;
}

.btn-warning:hover {
    background: #d97706;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.subject-item, .event-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.event-item {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
}

.subject-info, .event-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.color-dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
}

.badge {
    background: #e5e7eb;
    color: #374151;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-warning {
    background: #fbbf24;
    color: #92400e;
}

.badge-difficulty {
    font-size: 0.9rem;
    padding: 0.2rem 0.4rem;
    background: transparent;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    padding: 1rem;
    text-align: center;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.stat-value.blue { color: #3b82f6; }
.stat-value.green { color: #10b981; }
.stat-value.purple { color: #8b5cf6; }
.stat-value.orange { color: #f59e0b; }
.stat-value.red { color: #ef4444; }
.stat-value.indigo { color: #6366f1; }
.stat-value.pink { color: #ec4899; }
.stat-value.teal { color: #14b8a6; }

.stat-label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

.schedule-grid {
    display: grid;
    grid-template-columns: 80px repeat(7, 1fr);
    gap: 1px;
    background: #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.time-header {
    background: #f3f4f6;
    padding: 0.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.75rem;
}

.day-header {
    background: #f3f4f6;
    padding: 0.75rem 0.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.time-slot {
    background: white;
    padding: 0.25rem;
    min-height: 3.7vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
}

.time-label {
    background: #f9fafb;
    padding: 0.5rem 0.25rem;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 500;
    color: #6b7280;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.schedule-slot {
    color: white;
    border-radius: 4px;
    margin: 1px;
}

.event-slot {
    background: #fbbf24 !important;
    color: #92400e !important;
    font-weight: 600;
}

.legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.empty-state {
    text-align: center;
    color: #6b7280;
    padding: 3rem 1rem;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.hidden {
    display: none;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.algorithm-info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #1e40af;
}

.algorithm-info h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.algorithm-info ul {
    margin-left: 1rem;
    line-height: 1.5;
}

.daily-load-indicator {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
}

.day-load {
    text-align: center;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.load-low { background: #dcfce7; color: #166534; }
.load-medium { background: #fef3c7; color: #a16207; }
.load-high { background: #fed7aa; color: #c2410c; }
.load-very-high { background: #fecaca; color: #dc2626; }

.detailed-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.detailed-stat-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
}

.detailed-stat-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 0.5rem;
}

.detailed-stat-content {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.4;
}

.progress-bar {
    width: 100%;
    height: 0.74vh;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.progress-fill {
    height: 100%;
    background: #3b82f6;
    transition: width 0.3s ease;
}

.feedback-positive { color: #059669; font-weight: 600; }
.feedback-warning { color: #d97706; font-weight: 600; }
.feedback-negative { color: #dc2626; font-weight: 600; }

.header-icon
{
    height: 2vh;
}

.btn-danger {
    background: #ef4444;
    border-radius: 50%;
    color: white;
    padding: 0.5rem;
}

.btn-img {
    height: 1.85vh;
}

#schedule-card .card-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.header
{
    padding-top: 5vh;
}