:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}#root{width:100%;margin:0 auto;text-align:center}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#f5f7fa;color:#333;line-height:1.6}.app{min-height:100vh;display:flex;flex-direction:column}.header{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:2rem 1rem;text-align:center;box-shadow:0 2px 10px #0000001a}.header-content{display:flex;justify-content:space-between;align-items:center;max-width:1200px;margin:0 auto}.header-text{text-align:left}.header h1{font-size:2.5rem;font-weight:700;margin-bottom:.5rem;text-shadow:0 2px 4px rgba(0,0,0,.2)}.header p{font-size:1.1rem;opacity:.9;max-width:600px;margin:0}.logout-btn{background:#fff3;color:#fff;border:1px solid rgba(255,255,255,.3);padding:.75rem 1.5rem;border-radius:8px;cursor:pointer;font-size:1rem;transition:all .2s;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.logout-btn:hover{background:#ffffff4d;border-color:#ffffff80}.login-container{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#667eea,#764ba2);padding:1rem}.login-form{background:#fff;padding:3rem;border-radius:16px;box-shadow:0 20px 40px #0000001a;width:100%;max-width:400px;animation:slideUp .5s ease-out}@keyframes slideUp{0%{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}.login-header{text-align:center;margin-bottom:2rem}.login-header h1{font-size:2rem;font-weight:700;color:#2d3748;margin-bottom:.5rem}.login-header p{color:#718096;font-size:1rem}.login-error{background:#fed7d7;color:#c53030;padding:1rem;border-radius:8px;margin-bottom:1.5rem;border:1px solid #feb2b2;font-size:.9rem}.login-form .form-group{margin-bottom:1.5rem}.login-form .form-group label{display:block;margin-bottom:.5rem;font-weight:600;color:#2d3748}.login-form .form-group input{width:100%;padding:.75rem;border:2px solid #e2e8f0;border-radius:8px;font-size:1rem;transition:border-color .2s}.login-form .form-group input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.login-btn{width:100%;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;padding:1rem;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s}.login-btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 12px #667eea4d}.login-btn:disabled{opacity:.6;cursor:not-allowed;transform:none}.main{flex:1;padding:2rem 1rem;max-width:1200px;margin:0 auto;width:100%}.loading,.error,.no-courses{text-align:center;padding:3rem 1rem}.loading h2,.error h2{margin-bottom:1rem;color:#4a5568}.spinner{width:40px;height:40px;border:4px solid #e2e8f0;border-top:4px solid #667eea;border-radius:50%;animation:spin 1s linear infinite;margin:0 auto}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.error p{color:#e53e3e;margin-bottom:1rem}.retry-btn{background:#667eea;color:#fff;border:none;padding:.75rem 1.5rem;border-radius:8px;cursor:pointer;font-size:1rem;transition:background-color .2s}.retry-btn:hover{background:#5a67d8}.no-courses p{color:#718096;font-size:1.1rem}.courses-section{background:#fff;border-radius:12px;box-shadow:0 4px 6px #0000000d;overflow:hidden}.section-header{display:flex;justify-content:space-between;align-items:center;padding:1.5rem 2rem;border-bottom:1px solid #e2e8f0;background:#f8fafc}.section-header h2{margin:0;color:#2d3748;font-size:1.5rem;font-weight:600}.add-course-btn{background:#48bb78;color:#fff;border:none;padding:.75rem 1.5rem;border-radius:8px;cursor:pointer;font-size:1rem;font-weight:500;transition:all .2s;display:flex;align-items:center;gap:.5rem}.add-course-btn:hover{background:#38a169;transform:translateY(-1px)}.add-course-btn.active{background:#e53e3e}.add-course-btn.active:hover{background:#c53030}.add-course-form{padding:2rem;border-bottom:1px solid #e2e8f0;background:#f8fafc}.add-course-form h3{margin-bottom:1.5rem;color:#2d3748;font-size:1.25rem;font-weight:600}.form-error{background:#fed7d7;color:#c53030;padding:.75rem 1rem;border-radius:6px;margin-bottom:1.5rem;border:1px solid #feb2b2;font-size:.9rem}.form-success{background:#c6f6d5;color:#22543d;padding:.75rem 1rem;border-radius:6px;margin-bottom:1.5rem;border:1px solid #9ae6b4;font-size:.9rem;display:flex;justify-content:space-between;align-items:center}.close-success{background:none;border:none;color:#22543d;font-size:1.2rem;cursor:pointer;padding:0;width:20px;height:20px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:background-color .2s}.close-success:hover{background:#22543d1a}.close-error{background:none;border:none;color:#c53030;font-size:1.2rem;cursor:pointer;padding:0;width:20px;height:20px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:background-color .2s}.close-error:hover{background:#c530301a}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;margin-bottom:1.5rem}.form-group{display:flex;flex-direction:column}.form-group label{margin-bottom:.5rem;font-weight:500;color:#4a5568;font-size:.9rem}.form-group input,.form-group textarea{padding:.75rem;border:1px solid #e2e8f0;border-radius:6px;font-size:1rem;transition:border-color .2s,box-shadow .2s;background:#fff}.form-group input:focus,.form-group textarea:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.form-group textarea{resize:vertical;min-height:80px}.form-actions{display:flex;gap:1rem;justify-content:flex-end;margin-top:2rem;padding-top:1.5rem;border-top:1px solid #e2e8f0}.cancel-btn{background:#e2e8f0;color:#4a5568;border:none;padding:.75rem 1.5rem;border-radius:6px;cursor:pointer;font-size:1rem;font-weight:500;transition:background-color .2s}.cancel-btn:hover:not(:disabled){background:#cbd5e0}.submit-btn{background:#667eea;color:#fff;border:none;padding:.75rem 1.5rem;border-radius:6px;cursor:pointer;font-size:1rem;font-weight:500;transition:background-color .2s}.submit-btn:hover:not(:disabled){background:#5a67d8}.submit-btn:disabled,.cancel-btn:disabled{opacity:.6;cursor:not-allowed}.courses-section h2{margin-bottom:1.5rem;color:#2d3748;font-size:1.5rem;font-weight:600}.courses-list{padding:0}.course-item{border-bottom:1px solid #e2e8f0;transition:background-color .2s}.course-item:hover{background-color:#f7fafc}.course-item:last-child{border-bottom:none}.course-header{padding:1.5rem 2rem;cursor:pointer;display:flex;justify-content:space-between;align-items:center;transition:background-color .2s}.course-header:hover{background-color:#f7fafc}.course-title h3{margin-bottom:.25rem;color:#2d3748;font-size:1.25rem;font-weight:600}.course-location{color:#718096;font-size:.9rem;background:#edf2f7;padding:.25rem .75rem;border-radius:12px;display:inline-block}.course-summary{display:flex;align-items:center;gap:1.5rem;color:#4a5568}.course-price{font-weight:600;color:#48bb78;font-size:1.1rem}.course-dates{font-size:.9rem;color:#718096}.expand-icon{font-size:.8rem;color:#a0aec0;transition:transform .2s}.expand-icon.expanded{transform:rotate(180deg)}.course-details{padding:0 2rem 1.5rem;background:#f8fafc;animation:slideDown .3s ease-out}@keyframes slideDown{0%{opacity:0;max-height:0}to{opacity:1;max-height:500px}}.detail-group{margin-bottom:1.5rem}.detail-group:last-child{margin-bottom:0}.detail-group h4{margin-bottom:.75rem;color:#2d3748;font-size:1rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em}.detail-group p{color:#4a5568;line-height:1.6}.info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1rem}.info-item{padding:.75rem;background:#fff;border-radius:6px;border:1px solid #e2e8f0}.info-item strong{color:#2d3748;font-weight:600;margin-right:.5rem}.info-item a{color:#667eea;text-decoration:none;font-weight:500}.info-item a:hover{text-decoration:underline}.course-id{font-family:Courier New,monospace;background:#f7fafc;padding:.5rem .75rem;border-radius:4px;border:1px solid #e2e8f0;color:#4a5568;font-size:.9rem;display:inline-block}.course-actions{display:flex;justify-content:flex-end;padding-top:1rem;border-top:1px solid #e2e8f0;margin-top:1rem}.delete-course-btn{background:#e53e3e;color:#fff;border:none;padding:.75rem 1.5rem;border-radius:6px;cursor:pointer;font-size:.9rem;font-weight:500;transition:background-color .2s,transform .1s;display:flex;align-items:center;gap:.5rem}.delete-course-btn:hover:not(:disabled){background:#c53030;transform:translateY(-1px)}.delete-course-btn:disabled{background:#a0aec0;cursor:not-allowed;transform:none}.delete-course-btn:active:not(:disabled){transform:translateY(0)}.footer{background:#2d3748;color:#fff;text-align:center;padding:2rem 1rem;margin-top:auto}.footer p{opacity:.8;font-size:.9rem}@media (max-width: 768px){.header h1{font-size:2rem}.header p{font-size:1rem}.header-content{flex-direction:column;gap:1rem;text-align:center}.header-text{text-align:center}.logout-btn{align-self:center}.login-form{padding:2rem;margin:1rem}.login-header h1{font-size:1.75rem}.main{padding:1rem}.courses-section{border-radius:8px}.course-header{flex-direction:column;align-items:flex-start;gap:1rem}.course-summary{width:100%;justify-content:space-between}.info-grid{grid-template-columns:1fr}.section-header{flex-direction:column;gap:1rem;align-items:stretch}.add-course-btn{justify-content:center}.form-row{grid-template-columns:1fr}.form-actions{flex-direction:column}}@media (max-width: 480px){.header h1{font-size:1.75rem}.header p{font-size:.9rem}.login-form{padding:1.5rem}.login-header h1{font-size:1.5rem}.course-summary{flex-direction:column;align-items:flex-start;gap:.5rem}.expand-icon{align-self:flex-end}}
