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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.instructions-btn {
    margin-top: 15px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.instructions-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    transform: translateY(-2px);
}

.main-content {
    display: flex;
    min-height: 600px;
}

/* Course List Sidebar */
.course-list {
    width: 350px;
    background: #f8f9fa;
    padding: 20px;
    border-right: 2px solid #dee2e6;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
}

.course-list h2 {
    color: #495057;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.add-course-section {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.add-course-section h3 {
    color: #495057;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.add-course-section input,
.add-course-section select,
.add-course-section textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: inherit;
}

.add-course-section textarea {
    min-height: 60px;
    resize: vertical;
}

.add-course-section button {
    width: 100%;
    padding: 10px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s;
}

.add-course-section button:hover {
    background: #5568d3;
}

.filter-section {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.filter-section h4 {
    color: #495057;
    font-size: 0.95rem;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #dee2e6;
}

.filter-section label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    cursor: pointer;
}

.filter-section input[type="checkbox"] {
    margin-right: 8px;
}

/* Toggle Switch */
.toggle-section {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.toggle-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: #495057;
    font-weight: 500;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #667eea;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.courses-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.course-item {
    background: white;
    padding: 12px;
    border-radius: 6px;
    cursor: move;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 4px solid;
    position: relative;
}

.course-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.course-item.dragging {
    opacity: 0.5;
}

.course-item[data-category="base"] {
    border-left-color: #6c757d;
}

.course-item[data-category="A"] {
    border-left-color: #e74c3c;
}

.course-item[data-category="B"] {
    border-left-color: #3498db;
}

.course-item[data-category="C"] {
    border-left-color: #2ecc71;
}

.course-item[data-category="extra"] {
    border-left-color: #f39c12;
}

.course-item[data-category="PhD"] {
    border-left-color: #8e44ad;
}

.course-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    padding-right: 25px;
}

.course-meta {
    font-size: 0.85rem;
    color: #7f8c8d;
}

.course-notes {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed #dee2e6;
    font-style: italic;
    line-height: 1.4;
}

.course-notes a,
.placed-course-notes a {
    color: #667eea;
    text-decoration: none;
    font-style: normal;
    font-weight: 500;
}

.course-notes a:hover,
.placed-course-notes a:hover {
    text-decoration: underline;
}

.course-notes.hidden {
    display: none;
}

.course-timing {
    font-size: 0.8rem;
    color: #495057;
    margin-top: 4px;
}

.timing-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
    background: #6c757d;
    color: white;
}

.timing-badge.S1 { background: #17a2b8; }
.timing-badge.S2 { background: #fd7e14; }
.timing-badge.Q1 { background: #17a2b8; }
.timing-badge.Q2 { background: #20c997; }
.timing-badge.Q3 { background: #fd7e14; }
.timing-badge.Q4 { background: #dc3545; }

.course-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 5px;
}

.badge-category-base { background: #6c757d; color: white; }
.badge-category-A { background: #e74c3c; color: white; }
.badge-category-B { background: #3498db; color: white; }
.badge-category-C { background: #2ecc71; color: white; }
.badge-category-extra { background: #f39c12; color: white; }
.badge-category-PhD { background: #8e44ad; color: white; }

.badge-type-msc { background: #34495e; color: white; }
.badge-type-phd { background: #95a5a6; color: white; }

/* Delete course button */
.delete-course {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    color: #adb5bd;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    opacity: 0;
}

.course-item:hover .delete-course {
    opacity: 1;
}

.delete-course:hover {
    background: #e74c3c;
    color: white;
}

/* Calendar */
.calendar {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.calendar h2 {
    color: #495057;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.years-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 20px;
}

.year {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.year h3 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.quarters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.quarter {
    background: white;
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.quarter h4 {
    color: #6c757d;
    margin-bottom: 10px;
    font-size: 1rem;
    text-align: center;
}

.drop-zone {
    min-height: 150px;
    border: 2px dashed #ced4da;
    border-radius: 4px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: background 0.3s, border-color 0.3s;
}

.drop-zone.drag-over {
    background: #e7f3ff;
    border-color: #667eea;
}

.drop-zone.has-courses {
    border-style: solid;
    border-color: #28a745;
    background: #f0f8f4;
}

.placed-course {
    background: white;
    padding: 10px;
    border-radius: 4px;
    border-left: 4px solid;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.placed-course[data-category="base"] {
    border-left-color: #6c757d;
}

.placed-course[data-category="A"] {
    border-left-color: #e74c3c;
}

.placed-course[data-category="B"] {
    border-left-color: #3498db;
}

.placed-course[data-category="C"] {
    border-left-color: #2ecc71;
}

.placed-course[data-category="extra"] {
    border-left-color: #f39c12;
}

.placed-course[data-category="PhD"] {
    border-left-color: #8e44ad;
}

.placed-course.msc-spanning {
    background: linear-gradient(to right, white 0%, #f0f8ff 100%);
}

.placed-course.msc-spanning.wrong-slot {
    background: linear-gradient(to right, #fff5f5 0%, #ffe0e0 100%);
}

.placed-course-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
    margin-bottom: 3px;
    padding-right: 40px;
}

.placed-course-meta {
    font-size: 0.75rem;
    color: #7f8c8d;
}

.placed-course-notes {
    font-size: 0.7rem;
    color: #6c757d;
    margin-top: 4px;
    font-style: italic;
    line-height: 1.4;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.placed-course-notes.hidden {
    display: none;
}

/* Wrong slot styling - course placed in incorrect quarter/semester */
.placed-course.wrong-slot {
    background: #fff5f5;
    border-left-color: #dc3545 !important;
    border: 2px solid #dc3545;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    animation: pulse-warning 2s ease-in-out infinite;
}

@keyframes pulse-warning {
    0%, 100% { box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3); }
    50% { box-shadow: 0 2px 12px rgba(220, 53, 69, 0.5); }
}

.placed-course.wrong-slot .placed-course-name {
    color: #dc3545;
}

.placed-course.wrong-slot .placed-course-meta {
    color: #dc3545;
}

.placed-course.wrong-slot::after {
    content: "⚠ Wrong timing!";
    display: block;
    font-size: 0.7rem;
    color: #dc3545;
    font-weight: 700;
    margin-top: 6px;
    padding-top: 4px;
    border-top: 1px dashed #dc3545;
}

.placed-course-actions {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    gap: 4px;
}

.edit-notes-btn {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.edit-notes-btn:hover {
    background: #5568d3;
}

.remove-course {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.remove-course:hover {
    background: #c0392b;
}

.actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.actions button {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

#clearPlanBtn {
    background: #e74c3c;
    color: white;
}

#clearPlanBtn:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

#savePlanBtn {
    background: #2ecc71;
    color: white;
}

#savePlanBtn:hover {
    background: #27ae60;
    transform: translateY(-2px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.modal-content.modal-large {
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-large .modal-body {
    overflow-y: auto;
    flex: 1;
}

.instructions-body {
    padding: 25px 30px;
}

.instructions-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.instructions-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.instructions-section h4 {
    color: #667eea;
    font-size: 1.2rem;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #667eea;
    display: inline-block;
}

.instructions-section h5 {
    color: #495057;
    font-size: 1rem;
    margin: 15px 0 10px 0;
}

.instructions-section ul {
    margin: 10px 0;
    padding-left: 20px;
}

.instructions-section li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: #495057;
}

.instructions-section li ul {
    margin-top: 5px;
}

.instructions-section li ul li {
    margin-bottom: 4px;
    color: #6c757d;
}

.instructions-section p {
    color: #495057;
    line-height: 1.6;
    margin: 10px 0;
}

.instructions-section .note {
    font-size: 0.9rem;
    color: #6c757d;
    font-style: italic;
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 6px;
    border-left: 3px solid #adb5bd;
}

.instructions-section .highlight {
    background: #e7f3ff;
    padding: 12px 15px;
    border-radius: 6px;
    border-left: 3px solid #667eea;
}

.instructions-section .warning {
    background: #fff3cd;
    padding: 12px 15px;
    border-radius: 6px;
    border-left: 3px solid #ffc107;
    color: #856404;
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.2rem;
}

.modal-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.modal-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 20px;
}

.modal-body p {
    color: #495057;
    font-weight: 600;
    margin-bottom: 10px;
}

.modal-body textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
}

.modal-body textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.modal-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    display: flex;
    justify-content: flex-end;
}

.modal-footer button {
    padding: 10px 25px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.modal-footer button:hover {
    background: #5568d3;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        flex-direction: column;
    }

    .course-list {
        width: 100%;
        max-height: none;
        border-right: none;
        border-bottom: 2px solid #dee2e6;
    }

    .quarters {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    header h1 {
        font-size: 1.8rem;
    }

    .instructions-btn {
        font-size: 0.85rem;
        padding: 8px 16px;
    }

    .quarters {
        grid-template-columns: 1fr;
    }

    .calendar {
        padding: 15px;
    }

    .modal-content.modal-large {
        width: 95%;
        max-height: 95vh;
    }

    .instructions-body {
        padding: 15px 20px;
    }

    .instructions-section h4 {
        font-size: 1.1rem;
    }
}

/* ============================================================================
   Plan Management Controls
   ============================================================================ */

.plan-controls {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.plan-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.plan-selector label {
    font-weight: 600;
    font-size: 0.95rem;
}

.plan-selector select {
    padding: 6px 12px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    background: white;
    color: #333;
    font-size: 0.9rem;
    cursor: pointer;
    min-width: 150px;
}

.control-btn {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.plan-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

/* ============================================================================
   Summary Panel
   ============================================================================ */

.summary-panel {
    position: fixed;
    top: 100px;
    right: 20px;
    width: 320px;
    max-height: calc(100vh - 140px);
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 100;
}

.summary-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-header h3 {
    font-size: 1.2rem;
    margin: 0;
}

.toggle-summary-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    transition: background 0.2s;
}

.toggle-summary-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.summary-content {
    padding: 15px;
    max-height: calc(100vh - 220px);
    overflow-y: auto;
}

.summary-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.summary-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.summary-section h4 {
    color: #495057;
    font-size: 0.95rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.summary-total {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.graduation-requirement {
    margin-top: 12px;
    padding: 10px 12px;
    background-color: #e3f2fd;
    border-left: 3px solid #2196F3;
    font-size: 0.85rem;
    color: #1565c0;
    line-height: 1.5;
    border-radius: 4px;
    text-align: left;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.9rem;
}

.summary-label {
    color: #6c757d;
}

.summary-value {
    font-weight: 600;
    color: #495057;
}

.summary-warnings {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 12px;
    margin-top: 15px;
}

.summary-warnings h4 {
    color: #856404;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.summary-warnings ul {
    margin: 0;
    padding-left: 20px;
    font-size: 0.85rem;
    color: #856404;
}

.summary-warnings li {
    margin-bottom: 6px;
}

/* Credits badge */
.credits-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
    background: #17a2b8;
    color: white;
}

/* ============================================================================
   Print Styles
   ============================================================================ */

@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .container {
        max-width: 100%;
        box-shadow: none;
        border-radius: 0;
    }
    
    header {
        background: white;
        color: #333;
        border-bottom: 2px solid #667eea;
        page-break-after: avoid;
    }
    
    header h1 {
        color: #667eea;
    }
    
    /* Hide controls and non-essential elements */
    .plan-controls,
    .instructions-btn,
    .course-list,
    .add-course-section,
    .toggle-section,
    .filter-section,
    .actions,
    .placed-course-actions,
    .modal,
    .summary-panel {
        display: none !important;
    }
    
    /* Show main content full width */
    .main-content {
        display: block;
    }
    
    .calendar {
        width: 100%;
        padding: 20px;
    }
    
    /* Print header */
    .calendar::before {
        content: "Study Plan: " attr(data-plan-name) " | Printed: " attr(data-print-date);
        display: block;
        font-size: 0.9rem;
        color: #6c757d;
        margin-bottom: 20px;
        padding: 10px;
        border: 1px solid #dee2e6;
        border-radius: 4px;
    }
    
    /* Optimize grid for print */
    .quarters {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        page-break-inside: avoid;
    }
    
    .year {
        page-break-inside: avoid;
        margin-bottom: 20px;
    }
    
    .quarter {
        border: 1px solid #dee2e6;
        page-break-inside: avoid;
    }
    
    .drop-zone {
        border-style: solid;
        min-height: auto;
    }
    
    .placed-course {
        page-break-inside: avoid;
        margin-bottom: 5px;
    }
    
    /* Remove animations and hover effects */
    .placed-course.wrong-slot {
        animation: none;
        border: 2px solid #dc3545;
    }
    
    /* Show notes in print */
    .placed-course-notes,
    .course-notes {
        display: block !important;
        font-size: 0.75rem;
    }
    
    /* Print summary table */
    .calendar::after {
        content: "";
        display: block;
        page-break-before: always;
    }
}

/* ============================================================================
   Responsive Design Updates
   ============================================================================ */

@media (max-width: 1024px) {
    .summary-panel {
        position: static;
        width: 100%;
        max-height: none;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    .plan-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .plan-selector,
    .plan-actions {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .plan-selector {
        flex-direction: column;
        align-items: stretch;
    }
    
    .plan-selector select,
    .control-btn,
    .action-btn {
        width: 100%;
    }
    
    .summary-panel {
        width: 100%;
    }
}
