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

.info-modal.show {
    display: flex;
}

.info-modal-content {
    background: #000;
    border: 1px solid #fff;
    border-radius: 0;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.info-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.info-modal-header h2 {
    color: #fff;
    margin: 0;
    font-size: 18px;
    font-weight: 300;
    font-family: "Inconsolata", monospace;
}

.info-modal-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: background 0.2s ease;
}

.info-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.info-modal-close ion-icon {
    font-size: 20px;
}

.info-modal-body {
    padding: 20px;
    overflow-y: auto;
    color: #fff;
    font-family: "Inconsolata", monospace;
    line-height: 1.6;
}

.info-modal-body h1,
.info-modal-body h2,
.info-modal-body h3 {
    color: #fff;
    margin-top: 20px;
    margin-bottom: 10px;
}

.info-modal-body h1 {
    font-size: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.info-modal-body h2 {
    font-size: 18px;
}

.info-modal-body h3 {
    font-size: 16px;
}

.info-modal-body p {
    margin-bottom: 15px;
}

.info-modal-body ul,
.info-modal-body ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

.info-modal-body li {
    margin-bottom: 5px;
}

.info-modal-body strong {
    color: #51cf66;
    font-weight: 600;
}

.info-modal-body em {
    color: #51cf66;
    font-style: italic;
}

.info-modal-body a {
    color: #51cf66;
    text-decoration: none;
}

.info-modal-body a:hover {
    text-decoration: underline;
}

.info-modal-body hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 20px 0;
}

/* Save Dialog Styles */
.save-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.save-dialog.show {
    display: flex;
}

.save-dialog-content {
    background: #000;
    border: 1px solid #fff;
    border-radius: 0;
    width: 280px;
    height: 224px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.save-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.save-dialog-header h3 {
    color: #fff;
    margin: 0;
    font-size: 18px;
    font-weight: 300;
    font-family: "Inconsolata", monospace;
}

.save-dialog-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: background 0.2s ease;
}

.save-dialog-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.save-dialog-close ion-icon {
    font-size: 20px;
}

.save-dialog-body {
    padding: 20px;
    color: #fff;
    font-family: "Inconsolata", monospace;
    flex: 1;
    overflow-y: auto;
}

.scene-name-input {
    display: flex;
    align-items: center;
    background: #111;
    border: 1px solid #333;
    padding: 0;
    margin-bottom: 20px;
}

.scene-name-input input {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    color: #fff;
    font-family: "Inconsolata", monospace;
    font-size: 14px;
    outline: none;
}

.scene-name-input input:focus {
    background: #1a1a1a;
}

.scene-name-input .file-extension {
    padding: 10px 15px;
    color: #51cf66;
    font-size: 14px;
    font-weight: 600;
    font-family: "Inconsolata", monospace;
    background: #222;
    border-left: 1px solid #333;
}

.save-dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary,
.btn-secondary {
    padding: 10px 20px;
    border: 1px solid #fff;
    background: #000;
    color: #fff;
    font-family: "Inconsolata", monospace;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0;
}

.btn-primary {
    background: #51cf66;
    border-color: #51cf66;
}

.btn-primary:hover:not(:disabled) {
    background: #45b85a;
    border-color: #45b85a;
}

.btn-primary:disabled {
    background: #333;
    border-color: #555;
    color: #888;
    cursor: not-allowed;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.error-message {
    color: #ff6b6b;
    font-size: 12px;
    margin: 10px 20px;
    padding: 8px 12px;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid #ff6b6b;
    border-radius: 3px;
    font-family: "Inconsolata", monospace;
    text-align: center;
}

/* File Picker Dialog Styles */
.file-picker-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.file-picker-dialog.show {
    display: flex;
}

.file-picker-dialog-content {
    background: #000;
    border: 1px solid #fff;
    border-radius: 0;
    width: 320px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Auto-grow when error message is present */
.file-picker-dialog-content:has(.error-message) {
    height: auto;
}

.file-picker-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.file-picker-dialog-header h3 {
    color: #fff;
    margin: 0;
    font-size: 18px;
    font-weight: 300;
    font-family: "Inconsolata", monospace;
}

.file-picker-dialog-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: background 0.2s ease;
}

.file-picker-dialog-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.file-picker-dialog-close ion-icon {
    font-size: 20px;
}

.file-picker-dialog-body {
    padding: 20px;
    color: #fff;
    font-family: "Inconsolata", monospace;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.file-picker-dialog-body p {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: #ccc;
}

.file-selection-area {
    display: flex;
    justify-content: center;
    align-items: center;
}

.file-selection-area .btn-primary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
}

.file-selection-area .btn-primary ion-icon {
    font-size: 16px;
}

.file-picker-dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.recent-projects-list {
    width: 100%;
    margin-bottom: 20px;
}

.recent-projects-empty {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin: 10px 0;
    text-align: center;
}

.recent-projects-items {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.recent-project-item {
    padding: 8px 12px;
    margin: 4px 0;
    cursor: pointer;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s;
}

.recent-project-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.recent-project-item-name {
    font-weight: 500;
    margin-bottom: 2px;
}

.recent-project-item-path {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
