* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1d3a 50%, #0f1729 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(5deg); }
    66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

.container {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    max-width: 950px;
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.2);
    position: relative;
    z-index: 1;
}

.header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #6366f1 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.header h1 {
    font-size: 2.8em;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.header p {
    font-size: 1.2em;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    font-weight: 300;
}

.profile-button, .back-button {
    position: absolute;
    top: 20px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-button {
    right: 20px;
}

.back-button {
    left: 20px;
}

.profile-button:hover, .back-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.content {
    padding: 50px 40px;
}

.screen {
    display: none;
}

.screen.active {
    display: block;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

/* Start Screen Styles */
.start-hero {
    text-align: center;
    padding: 40px 0;
}

.floating-icon {
    font-size: 120px;
    animation: floatIcon 3s ease-in-out infinite;
    margin-bottom: 30px;
    filter: drop-shadow(0 10px 30px rgba(59, 130, 246, 0.3));
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.start-title {
    font-size: 3em;
    font-weight: 700;
    color: #e0e6f0;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.start-subtitle {
    font-size: 1.3em;
    color: #8b92a8;
    margin-bottom: 60px;
    font-weight: 300;
}

.start-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.feature-item {
    background: rgba(30, 41, 59, 0.5);
    padding: 30px 20px;
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-item:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.2);
}

.feature-icon {
    font-size: 50px;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 10px rgba(59, 130, 246, 0.3));
}

.feature-item h3 {
    font-size: 1.3em;
    color: #e0e6f0;
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-item p {
    color: #8b92a8;
    font-size: 0.95em;
    line-height: 1.5;
}

.btn-start {
    font-size: 1.2em;
    padding: 18px 50px;
    margin-top: 20px;
}

/* Form Elements */
h2 {
    color: #e0e6f0;
    font-size: 2.2em;
    margin-bottom: 30px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #c7d0e0;
    font-size: 0.95em;
}

input, select, textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
    background: rgba(30, 41, 59, 0.5);
    color: #e0e6f0;
}

input::placeholder, textarea::placeholder {
    color: #64748b;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

select {
    cursor: pointer;
}

select option {
    background: #1e293b;
    color: #e0e6f0;
}

/* Buttons */
.btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(71, 85, 105, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background: rgba(71, 85, 105, 1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-add-courses {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-add-courses:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

/* Course List */
.course-list {
    margin-top: 25px;
}

.course-item {
    background: rgba(30, 41, 59, 0.5);
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s;
}

.course-item:hover {
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateX(5px);
}

.course-info {
    flex-grow: 1;
}

.course-name {
    font-weight: 600;
    color: #e0e6f0;
    font-size: 1.05em;
    margin-bottom: 5px;
}

.course-grade {
    color: #8b92a8;
    font-size: 14px;
}

.btn-remove {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-remove:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: scale(1.05);
}

/* Goal Cards */
.goal-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.goal-card {
    background: rgba(30, 41, 59, 0.5);
    padding: 30px 20px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(59, 130, 246, 0.2);
    text-align: center;
}

.goal-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.2);
}

.goal-card.selected {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
    border-color: #3b82f6;
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.3);
}

.goal-icon {
    font-size: 48px;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 10px rgba(59, 130, 246, 0.3));
}

.goal-card h3 {
    font-size: 1.2em;
    color: #e0e6f0;
    margin-bottom: 10px;
    font-weight: 600;
}

.goal-card p {
    color: #8b92a8;
    font-size: 0.9em;
    line-height: 1.5;
}

/* Result Cards */
.result-card {
    background: rgba(30, 41, 59, 0.5);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.result-card:hover {
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    gap: 15px;
}

.course-title {
    font-size: 1.4em;
    font-weight: 700;
    color: #60a5fa;
    flex: 1;
}

.course-credits {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.course-reason {
    color: #c7d0e0;
    line-height: 1.7;
    margin-bottom: 18px;
    font-size: 0.98em;
}

/* Loading */
.loading {
    text-align: center;
    padding: 60px 20px;
}

.loading h3 {
    color: #e0e6f0;
    margin-bottom: 10px;
    font-size: 1.5em;
}

.loading p {
    color: #8b92a8;
    font-size: 1.1em;
}

.spinner {
    border: 4px solid rgba(59, 130, 246, 0.2);
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto 25px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #3b82f6;
}

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
}

/* Credit Range */
.credit-range {
    display: flex;
    gap: 25px;
    align-items: flex-end;
}

.credit-range > div {
    flex: 1;
}

.credit-range input {
    width: 100%;
}

/* Messages */
.error-message {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.success-message {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Profile Section */
.profile-section {
    background: rgba(30, 41, 59, 0.5);
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.profile-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.15);
}

.profile-row:last-child {
    border-bottom: none;
}

.profile-label {
    font-weight: 600;
    color: #60a5fa;
}

.profile-value {
    color: #e0e6f0;
}

.planned-badge {
    color: #60a5fa;
    font-weight: 600;
}

.button-group {
    margin-top: 25px;
}

/* Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2em;
    }
    
    .start-title {
        font-size: 2em;
    }
    
    .start-features {
        grid-template-columns: 1fr;
    }
    
    .goal-options {
        grid-template-columns: 1fr;
    }
    
    .credit-range {
        flex-direction: column;
        gap: 15px;
    }
    
    .result-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .profile-button, .back-button {
        padding: 10px 16px;
        font-size: 12px;
    }
}