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

:root {
    /* Default theme colors (THY Red) */
    --color-short-term: #e30a17;
    --color-mid-term: #f04e5a;
    --color-long-term: #f79298;
    
    /* Default font sizes */
    --font-size-base: 14px;
    --font-size-date: 11px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    padding: 20px;
    font-size: var(--font-size-base);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.top-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 25px;
    padding-bottom: 10px;
}

.controls-container {
    display: flex;
    align-items: center;
    gap: 0;
    background: white;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
}

.control-select {
    border: none;
    background: transparent;
    padding: 6px 10px;
    font-size: 13px;
    cursor: pointer;
    color: #374151;
    font-weight: 500;
    transition: all 0.2s ease;
}

.control-select:hover {
    color: #111827;
    background: #f9fafb;
    border-radius: 4px;
}

.control-select:focus {
    outline: none;
    background: #f3f4f6;
    border-radius: 4px;
}

.lang-select {
    font-size: 12px;
}

.theme-select {
    min-width: 140px;
}

.theme-select option {
    padding: 6px 8px;
    font-size: 13px;
    font-weight: 600;
}

.control-divider {
    width: 1px;
    height: 20px;
    background: #e5e7eb;
    margin: 0 8px;
}

.font-size-controls {
    display: flex;
    gap: 4px;
}

.font-btn {
    border: none;
    background: transparent;
    padding: 4px 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: #6b7280;
    border-radius: 4px;
    transition: all 0.2s ease;
    min-width: 32px;
}

.font-btn:hover {
    background: #f3f4f6;
    color: #111827;
}

.font-btn:active {
    background: #e5e7eb;
}

.control-btn {
    border: none;
    background: transparent;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    color: #6b7280;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.control-btn:hover {
    background: #f3f4f6;
    color: #111827;
}

.control-btn:active {
    background: #e5e7eb;
}

.control-btn.edit-btn.active {
    background: #fef2f2;
    color: #dc2626;
}

.control-btn.edit-btn.active:hover {
    background: #fee2e2;
}

.page-title {
    text-align: center;
    color: #374151;
    margin: 20px auto 0 auto;
    padding: 0 0 50px 0;
    font-size: 1.4em;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    width: 100%;
    max-width: 1400px;
}

.roadmap-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 15px;
    margin: 40px auto 0 auto;
    position: relative;
    width: 100%;
    max-width: 1400px;
}

.roadmap-section {
    flex: 0 0 auto;
    min-width: 0;
}

/* Width classes for sections - Fixed widths */
.roadmap-section.width-xsmall {
    width: 150px;
}

.roadmap-section.width-small {
    width: 220px;
}

.roadmap-section.width-medium {
    width: 300px;
}

.roadmap-section.width-large {
    width: 400px;
}

.roadmap-section.width-xlarge {
    width: 500px;
}

.section-header {
    text-align: center;
    font-weight: bold;
    font-size: 0.9em;
    padding: 8px;
    border-radius: 6px 6px 0 0;
    color: white;
    margin-bottom: 0;
    position: relative;
}

.width-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 2px 6px;
    font-size: 0.75em;
    font-weight: 600;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.width-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.width-btn:active {
    background: rgba(255, 255, 255, 0.4);
}

.short-term .section-header {
    background: var(--color-short-term);
}

.mid-term .section-header {
    background: var(--color-mid-term);
}

.long-term .section-header {
    background: var(--color-long-term);
}

.milestones-list {
    background: #fff;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 4px;
}

.milestone-item {
    padding: 14px 16px;
    margin: 8px;
    border-radius: 6px;
    background: #fafafa;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.milestone-item:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.milestone-item:last-child {
    margin-bottom: 8px;
}

.milestone-item.highlighted {
    padding-left: 11px;
    position: relative;
}

.milestone-item.highlighted::before {
    content: '◉';
    position: absolute;
    right: 10px;
    top: 12px;
    font-size: 1.3em;
    line-height: 1;
}

.short-term .milestone-item.highlighted {
    border-left: 4px solid var(--color-short-term);
    background: rgba(227, 10, 23, 0.05);
}

.short-term .milestone-item.highlighted::before {
    color: var(--color-short-term);
}

.mid-term .milestone-item.highlighted {
    border-left: 4px solid var(--color-mid-term);
    background: rgba(240, 78, 90, 0.05);
}

.mid-term .milestone-item.highlighted::before {
    color: var(--color-mid-term);
}

.long-term .milestone-item.highlighted {
    border-left: 4px solid var(--color-long-term);
    background: rgba(247, 146, 152, 0.05);
}

.long-term .milestone-item.highlighted::before {
    color: var(--color-long-term);
}

.milestone-item.highlighted .milestone-description {
    font-weight: 500;
    color: #333;
}

.milestone-date {
    font-weight: bold;
    font-size: var(--font-size-date);
    margin-bottom: 4px;
}

.short-term .milestone-date {
    color: var(--color-short-term);
}

.mid-term .milestone-date {
    color: var(--color-mid-term);
}

.long-term .milestone-date {
    color: var(--color-long-term);
}

.milestone-description {
    color: #555;
    font-size: 0.85em;
    line-height: 1.4;
}

/* Highlighted text within descriptions */
.milestone-description .highlight {
    font-weight: 700;
}

.short-term .milestone-description .highlight {
    color: var(--color-short-term);
}

.mid-term .milestone-description .highlight {
    color: var(--color-mid-term);
}

.long-term .milestone-description .highlight {
    color: var(--color-long-term);
}

/* Edit mode styles */
body.edit-mode .milestone-item {
    position: relative;
    padding-right: 100px;
}

.edit-controls {
    display: none;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    gap: 5px;
}

body.edit-mode .edit-controls {
    display: flex;
}

.btn-edit, .btn-delete, .btn-add {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em;
    transition: all 0.2s ease;
}

.btn-edit {
    background: #3b82f6;
    color: white;
}

.btn-edit:hover {
    background: #2563eb;
}

.btn-delete {
    background: #ef4444;
    color: white;
}

.btn-delete:hover {
    background: #dc2626;
}

.btn-add {
    background: #10b981;
    color: white;
    margin: 8px;
    width: calc(100% - 16px);
}

.btn-add:hover {
    background: #059669;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal.show {
    display: block;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.close:hover {
    color: #000;
}

#milestone-form label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

#milestone-form input[type="text"],
#milestone-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

#milestone-form input[type="checkbox"] {
    margin-right: 8px;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-save, .btn-cancel {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

.btn-save {
    background: #10b981;
    color: white;
}

.btn-save:hover {
    background: #059669;
}

.btn-cancel {
    background: #6b7280;
    color: white;
}

.btn-cancel:hover {
    background: #4b5563;
}
