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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7ff 0%, #ede9fe 50%, #f3e8ff 100%);
    min-height: 100vh;
    padding: 50px 20px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(196, 181, 253, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(221, 214, 254, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%);
    border-radius: 20px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: 1px solid rgba(102, 126, 234, 0.08);
    position: relative;
    z-index: 1;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 2% 50%, rgba(102, 126, 234, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 98% 100%, rgba(118, 75, 162, 0.03) 0%, transparent 50%),
        linear-gradient(45deg, transparent 30%, rgba(167, 139, 250, 0.02) 50%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

header {
    background: linear-gradient(135deg, #4A6FA5 0%, #2E5090 100%);
    color: white;
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: visible;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 0;
}

header h1 {
    font-size: 3em;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.creator-badge {
    position: absolute;
    top: 20px;
    right: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(12px);
    padding: 12px 20px;
    border-radius: 50px;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    z-index: 2;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    overflow: hidden;
}

.creator-badge.expanded {
    max-width: 300px;
    width: auto;
    height: auto;
    min-height: 50px;
    gap: 12px;
    justify-content: flex-start;
}

.creator-badge:hover {
    background: rgba(255, 255, 255, 0.45);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-3px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.creator-icon {
    font-size: 1.8em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
    color: #FFD700;
}

.creator-info {
    display: none;
    flex-direction: column;
    text-align: left;
    gap: 2px;
}

.creator-badge.expanded .creator-info {
    display: flex;
}

.creator-name {
    font-size: 0.95em;
    font-weight: 800;
    color: #FFD700;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.creator-title {
    font-size: 0.75em;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.98);
    font-weight: 500;
    text-shadow: 0 0.5px 1px rgba(0, 0, 0, 0.15);
}


main {
    padding: 50px 40px;
    position: relative;
}

main::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

main::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -60px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

section {
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

section h2 {
    color: #4A6FA5;
    margin-bottom: 25px;
    font-size: 2em;
    font-weight: 700;
    border-bottom: 3px solid #4A6FA5;
    padding-bottom: 15px;
    text-shadow: 0 1px 2px rgba(102, 126, 234, 0.1);
}

/* Form Styles */
.course-form {
    background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%);
    padding: 40px;
    border-radius: 15px;
    border: 2px solid #e0d5f5;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.08), 0 0 0 1px rgba(102, 126, 234, 0.02);
    position: relative;
    overflow: hidden;
}

.course-form::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.course-form > * {
    position: relative;
    z-index: 1;
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #4A6FA5;
    font-size: 0.98em;
    letter-spacing: 0.5px;
}

.form-group input[type="text"],
.form-group input[type="time"],
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 0.98em;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
    color: #2c3e50;
}

.form-group input[type="text"]:focus,
.form-group input[type="time"]:focus,
.form-group select:focus {
    outline: none;
    border-color: #4A6FA5;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

/* Slots Container */
.options-container {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ecf0f1 100%);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.15);
}

.options-container > label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1em;
    letter-spacing: 0.5px;
}

.options-list {
    margin-bottom: 20px;
}

.option-group {
    background: white;
    border: 2px solid #ecf0f1;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.option-group:hover {
    border-color: #4A6FA5;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.15);
}

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #ecf0f1;
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.05em;
}

.days-list {
    margin-bottom: 15px;
}

.day-row {
    display: grid;
    grid-template-columns: 2fr auto auto auto 50px;
    gap: 12px;
    margin-bottom: 12px;
    align-items: center;
}

.time-group {
    display: flex;
    align-items: center;
    gap: 0;
    background: white;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    padding: 8px;
    transition: all 0.3s ease;
}

.time-group:focus-within {
    border-color: #4A6FA5;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.time-part {
    border: 2px solid #e0e0e0;
    background: #ffffff;
    color: #2c3e50;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    font-size: 1em;
    text-align: center;
    padding: 10px 8px;
    outline: none;
    line-height: 1.5;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.time-part:focus {
    border-color: #4A6FA5;
    background: #f9fbff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.time-part.filled {
    border-color: #4A6FA5;
    background: #f0f4ff;
}

.time-part.start-hours,
.time-part.end-hours {
    width: 70px;
    min-height: 44px;
    font-size: 1.15em;
}

.time-part.start-minutes,
.time-part.end-minutes {
    width: 70px;
    min-height: 44px;
    font-size: 1.15em;
}

.time-part.start-ampm,
.time-part.end-ampm {
    width: 80px;
    padding: 10px 8px;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    font-size: 0.95em;
    border-radius: 6px;
    background: #ffffff;
    transition: all 0.2s ease;
}

.time-part.start-ampm:focus,
.time-part.end-ampm:focus {
    border-color: #4A6FA5;
    background: #f9fbff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.time-separator {
    color: #4A6FA5;
    font-weight: 700;
    font-size: 1.1em;
    margin: 0 4px;
    display: flex;
    align-items: center;
    line-height: 1;
}

.time-dash {
    color: #4A6FA5;
    font-weight: 700;
    font-size: 1.1em;
    margin: 0 10px;
    display: flex;
    align-items: center;
}

.day-row select,
.day-row input {
    padding: 11px 14px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 0.95em;
    font-family: inherit;
    background: white;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.day-row select:focus,
.day-row input:focus {
    outline: none;
    border-color: #4A6FA5;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.remove-day,
.remove-option {
    padding: 10px 12px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
    font-weight: 600;
}

.remove-day:hover,
.remove-option:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.add-day-btn {
    width: 100%;
}

/* Buttons */
.primary-btn,
.secondary-btn,
.nav-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.98em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    letter-spacing: 0.5px;
}

.primary-btn {
    background: linear-gradient(135deg, #4A6FA5 0%, #2E5090 100%);
    color: white;
    margin-right: 10px;
    border: 2px solid transparent;
}

.primary-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.primary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.secondary-btn {
    background: white;
    color: #4A6FA5;
    border: 2px solid #4A6FA5;
    margin-right: 10px;
}

.secondary-btn:hover:not(:disabled) {
    background: #4A6FA5;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.secondary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.primary-btn.large,
.secondary-btn.large {
    padding: 15px 30px;
    font-size: 1.05em;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

#addSlotBtn {
    width: 100%;
    padding: 10px;
}

/* Courses List */
.courses-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.empty-message {
    grid-column: 1 / -1;
    text-align: center;
    color: #999;
    padding: 30px;
    font-style: italic;
}

.course-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #ecf0f1;
    border-radius: 12px;
    padding: 20px;
    padding-top: 50px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.course-card:hover {
    border-color: #4A6FA5;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    transform: translateY(-5px);
    background: white;
}

.course-card-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
}

.edit-course,
.remove-course {
    background: #4A6FA5;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1em;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-course {
    background: #4A6FA5;
}

.edit-course:hover {
    background: #2E5090;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.remove-course {
    background: #e74c3c;
}

.remove-course:hover {
    background: #c0392b;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.course-card h3 {
    color: #4A6FA5;
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: 700;
}

.course-card ul {
    list-style: none;
    font-size: 0.95em;
    color: #555;
}

.course-card li {
    padding: 8px 0;
    border-bottom: 1px solid #ecf0f1;
    font-weight: 500;
}

.course-card li:last-child {
    border-bottom: none;
}

/* Actions Section */
.actions-section {
    text-align: center;
    margin: 30px 0;
}

.actions-section button {
    margin: 0 10px;
}

/* Results Section */
.results-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ecf0f1 100%);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.arrangement-count {
    color: #4A6FA5;
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 1.15em;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin: 25px 0;
}

#pageInfo,
#pageInfo2 {
    font-weight: 700;
    color: #2c3e50;
    min-width: 100px;
    text-align: center;
    font-size: 1em;
}

.nav-btn {
    padding: 11px 22px;
    background: linear-gradient(135deg, #4A6FA5 0%, #2E5090 100%);
    color: white;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.nav-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.nav-btn:disabled {
    background: #bdc3c7;
    border-color: #bdc3c7;
    cursor: not-allowed;
}

/* Arrangements Container */
.arrangements-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 30px 0;
}

.calendar {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.2);
    margin-bottom: 30px;
}

.calendar-header {
    background: linear-gradient(135deg, #4A6FA5 0%, #2E5090 100%);
    color: white;
    padding: 20px;
    text-align: center;
    font-weight: 700;
    font-size: 1.15em;
}

.calendar-grid {
    display: grid;
    grid-template-columns: 80px repeat(7, 1fr);
    gap: 0;
    grid-auto-rows: 60px;
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0d5f5;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.06);
}

.day-header {
    background: linear-gradient(135deg, #4A6FA5 0%, #2E5090 100%);
    color: white;
    padding: 18px 12px;
    text-align: center;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.98em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.time-header {
    background: linear-gradient(135deg, #4A6FA5 0%, #2E5090 100%);
    color: white;
    padding: 18px 12px;
    text-align: center;
    font-weight: 700;
    border: 1px solid #1a252f;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.day-cell {
    border: 1px solid #bdc3c7;
    padding: 0;
    background: white;
    position: relative;
    transition: all 0.3s ease;
    min-height: 60px;
    overflow: visible;
}

.day-cell:hover {
    background: #f8f9fa;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
}

.day-name {
    display: none;
}

.time-cell {
    background: #ecf0f1;
    border: 1px solid #bdc3c7;
    padding: 8px 10px;
    font-size: 0.9em;
    color: #2c3e50;
    position: relative;
    font-weight: 600;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.time-label {
    display: block;
    font-size: 0.95em;
    font-weight: 700;
    font-weight: 600;
    color: #34495e;
    text-align: center;
}

.event {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 4px 4px;
    border-radius: 4px;
    font-size: 0.85em;
    word-wrap: break-word;
    border-left: 3px solid #2980b9;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    overflow: hidden;
}

.event-name {
    font-weight: 700;
    font-size: 0.95em;
    margin-bottom: 2px;
    width: 100%;
    word-break: break-word;
}

.event-time {
    font-size: 0.8em;
    opacity: 0.95;
    font-weight: 500;
}

.event:hover {
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.event.course-0 {
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5A52 100%);
    border-left-color: #FF5252;
}

.event.course-1 {
    background: linear-gradient(135deg, #4ECDC4 0%, #44B0AA 100%);
    border-left-color: #2AADA0;
}

.event.course-2 {
    background: linear-gradient(135deg, #FFD93D 0%, #FFC107 100%);
    border-left-color: #FFA000;
}

.event.course-3 {
    background: linear-gradient(135deg, #6C5CE7 0%, #5F3DC4 100%);
    border-left-color: #5636B8;
}

.event.course-4 {
    background: linear-gradient(135deg, #00B894 0%, #00A876 100%);
    border-left-color: #009868;
}

.event.course-5 {
    background: linear-gradient(135deg, #FF7675 0%, #FF6B5B 100%);
    border-left-color: #FF5555;
}

.event-continuation {
    opacity: 0.9;
}

.event-continuation.event-boundary {
    display: none;
}

.event-continuation .event-name,
.event-continuation .event-time {
    display: none;
}

footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    padding: 25px;
    text-align: center;
    color: #ecf0f1;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    font-weight: 500;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #27ae60;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease, slideOut 0.3s ease 2.7s forwards;
    z-index: 1000;
    font-weight: 600;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.share-section {
    display: none;
}

.action-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border: 2px solid #4A6FA5;
    border-radius: 8px;
    background: white;
    color: #4A6FA5;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    letter-spacing: 0.3px;
    min-width: 140px;
    justify-content: center;
}

.btn-icon {
    font-size: 1.2em;
    display: inline-block;
}

.btn-text {
    display: inline-block;
}

.action-btn:hover {
    background: #4A6FA5;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.action-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

#shareBtn,
#shareBtn2 {
    padding: 12px 30px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    font-size: 1.5em;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #333;
}

.modal-body {
    margin-bottom: 20px;
}

.share-option {
    margin-bottom: 20px;
}

.share-option label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 0.95em;
}

.share-code {
    background: #f8f9fa;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    padding: 12px 15px;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    word-break: break-all;
    max-height: 120px;
    overflow-y: auto;
    margin-bottom: 10px;
}

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

.modal-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn {
    background: #4A6FA5;
    color: white;
}

.copy-btn:hover {
    background: #2E5090;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.close-btn {
    background: #bdc3c7;
    color: white;
}

.close-btn:hover {
    background: #95a5a6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        border-radius: 15px;
    }

    header {
        padding: 60px 30px;
    }

    header h1 {
        font-size: 2.2em;
    }

    main {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 20px 10px;
    }

    .container {
        border-radius: 12px;
    }

    header {
        padding: 35px 15px 25px 15px;
    }

    header h1 {
        font-size: 1.5em;
        margin-bottom: 5px;
    }

    header p {
        font-size: 0.9em;
        margin-bottom: 10px;
    }

    .creator-badge {
        bottom: 8px;
        right: 10px;
        padding: 6px 10px;
        gap: 6px;
        font-size: 0.8em;
    }

    .creator-icon {
        font-size: 1em;
    }

    .creator-name {
        font-size: 0.7em;
        font-weight: 600;
    }

    .creator-title {
        font-size: 0.55em;
        line-height: 1.2;
    }

    main {
        padding: 25px 20px;
    }

    section h2 {
        font-size: 1.6em;
        margin-bottom: 20px;
    }

    .course-form {
        padding: 25px 20px;
        border-radius: 12px;
    }

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

    .form-group label {
        font-size: 0.9em;
    }

    .options-container {
        margin-bottom: 20px;
    }

    .option-group {
        margin-bottom: 15px;
    }

    .day-row {
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
    }

    .day-row .day-select {
        flex: 1;
        min-width: 120px;
    }

    .day-row .remove-day {
        min-width: auto;
        padding: 8px 10px;
    }

    .time-group {
        width: 100%;
        gap: 2px;
        padding: 6px;
    }

    .time-part {
        font-size: 0.85em;
        padding: 7px 4px;
    }

    .time-part.start-hours,
    .time-part.end-hours {
        width: 45%;
        flex: 1;
        min-width: 40px;
    }

    .time-part.start-minutes,
    .time-part.end-minutes {
        width: 45%;
        flex: 1;
        min-width: 40px;
    }

    .time-part.start-ampm,
    .time-part.end-ampm {
        width: 50px;
        padding: 7px 3px;
        font-size: 0.8em;
    }

    .time-separator {
        margin: 0 2px;
        font-size: 0.95em;
    }

    .time-dash {
        margin: 0 4px;
        font-size: 0.95em;
    }

    .form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
        margin: 0;
        padding: 12px;
        font-size: 0.95em;
    }

    .courses-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .course-card {
        padding: 15px;
    }

    .course-card h3 {
        font-size: 1.1em;
    }

    .course-card ul {
        font-size: 0.9em;
    }

    .actions-section {
        flex-direction: column;
        gap: 10px;
    }

    .actions-section button {
        width: 100%;
        padding: 12px;
        font-size: 0.95em;
    }

    .results-section h3 {
        font-size: 1.4em;
    }

    .arrangement-box {
        padding: 15px;
        margin-bottom: 15px;
        border-radius: 10px;
    }

    .calendar-grid {
        grid-template-columns: 60px repeat(7, 1fr);
        gap: 0;
    }

    .time-label {
        font-size: 0.8em;
        padding: 4px 2px;
    }

    .day-header {
        font-size: 0.8em;
        padding: 6px 2px;
    }

    .day-cell {
        min-height: 50px;
        padding: 0;
    }

    .event {
        font-size: 0.75em;
        padding: 2px 2px;
    }

    .event-name {
        font-size: 0.75em;
    }

    .event-time {
        font-size: 0.65em;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 8px;
    }

    .pagination button {
        padding: 8px 12px;
        font-size: 0.85em;
    }

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

@media (max-width: 480px) {
    body {
        padding: 12px 8px;
    }

    .container {
        border-radius: 10px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    }

    header {
        padding: 25px 12px 20px 12px;
    }

    header h1 {
        font-size: 1.2em;
        margin-bottom: 3px;
        font-weight: 700;
    }

    header p {
        font-size: 0.8em;
        margin-bottom: 8px;
    }

    .creator-badge {
        bottom: 6px;
        right: 8px;
        padding: 5px 8px;
        gap: 4px;
    }

    .creator-icon {
        font-size: 0.85em;
    }

    .creator-name {
        font-size: 0.6em;
        font-weight: 600;
        line-height: 1.1;
    }

    .creator-title {
        font-size: 0.5em;
        line-height: 1.1;
    }

    main {
        padding: 15px;
    }

    section h2 {
        font-size: 1.3em;
        margin-bottom: 15px;
        border-bottom: 2px solid #4A6FA5;
    }

    .course-form {
        padding: 15px;
        border-radius: 10px;
        border: 1px solid #4A6FA5;
    }

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

    .form-group label {
        font-size: 0.85em;
        margin-bottom: 6px;
    }

    .form-group input,
    .form-group select {
        font-size: 0.9em;
        padding: 8px;
    }

    .option-header {
        font-size: 0.9em;
    }

    .remove-option,
    .remove-day {
        padding: 4px 8px;
    }

    .day-row {
        flex-direction: row;
        gap: 6px;
        align-items: center;
        flex-wrap: wrap;
    }

    .day-select {
        flex: 1;
        min-width: 100px;
        font-size: 0.8em;
        padding: 7px 6px;
    }

    .time-dash {
        width: auto;
        margin: 0 3px;
    }

    .remove-day {
        width: auto;
        padding: 6px 8px;
        font-size: 0.9em;
    }

    .time-group {
        flex: 1;
        min-width: 140px;
        flex-wrap: nowrap;
        gap: 1px;
        padding: 5px;
    }

    .time-part {
        font-size: 0.75em;
        padding: 5px 2px;
        border-radius: 4px;
    }

    .time-part.start-hours,
    .time-part.end-hours,
    .time-part.start-minutes,
    .time-part.end-minutes {
        flex: 1;
        min-width: 32%;
        font-size: 0.75em;
    }

    .time-part.start-ampm,
    .time-part.end-ampm {
        width: 42px;
        padding: 5px 2px;
        font-size: 0.7em;
        flex: 0 0 auto;
    }

    .time-separator {
        margin: 0 0.5px;
        font-size: 0.8em;
    }

    .time-separator {
        margin: 0 1px;
        font-size: 0.9em;
    }

    .add-day-btn {
        width: 100%;
        padding: 10px;
        font-size: 0.85em;
        margin-top: 8px;
    }

    .add-option-btn {
        width: 100%;
        padding: 10px;
        font-size: 0.85em;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
        padding: 11px;
        font-size: 0.9em;
        margin: 5px 0;
    }

    .form-actions {
        flex-direction: column;
        gap: 8px;
    }

    .courses-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .course-card {
        padding: 12px;
        border-radius: 8px;
    }

    .course-card h3 {
        font-size: 1em;
        margin-bottom: 8px;
    }

    .course-card ul {
        font-size: 0.8em;
    }

    .course-icons {
        gap: 6px;
    }

    .course-icons button {
        padding: 4px 8px;
        font-size: 0.9em;
    }

    .actions-section {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 15px;
    }

    .actions-section button {
        width: 100%;
        padding: 11px;
        font-size: 0.9em;
    }

    .results-section {
        margin-top: 20px;
    }

    .results-section h3 {
        font-size: 1.2em;
        margin-bottom: 15px;
    }

    .arrangement-box {
        padding: 12px;
        margin-bottom: 12px;
        border-radius: 8px;
    }

    .arrangement-number {
        font-size: 0.95em;
    }

    .calendar-grid {
        grid-template-columns: 50px repeat(7, 1fr);
        gap: 0;
        border: 1px solid #ddd;
    }

    .time-label {
        font-size: 0.7em;
        padding: 3px 1px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .day-header {
        font-size: 0.65em;
        padding: 4px 1px;
        font-weight: 700;
    }

    .day-cell {
        min-height: 60px;
        padding: 0;
        border: 1px solid #eee;
    }

    .event {
        font-size: 0.65em;
        padding: 1px;
    }

    .event-name {
        font-size: 0.65em;
        font-weight: 600;
    }

    .event-time {
        font-size: 0.55em;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 15px;
    }

    .pagination button {
        padding: 8px 10px;
        font-size: 0.8em;
    }

    .arrangement-count {
        font-size: 0.9em;
    }

    .share-modal {
        margin: 50% auto;
        max-width: 90%;
    }

    .modal-content {
        padding: 15px;
    }

    .modal-content h2 {
        font-size: 1.2em;
    }

    .modal-content textarea {
        font-size: 0.8em;
        padding: 8px;
    }

    .modal-actions button {
        width: 100%;
        padding: 10px;
        font-size: 0.9em;
        margin: 5px 0;
    }
}
