* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    padding: 20px;
    color: #e0e6ed;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(15, 15, 35, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid #333;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.header h1 {
    color: #00ff88;
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    font-weight: bold;
}

.header::before {
    content: '// ';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -10px;
    color: #666;
    font-size: 1.2rem;
}

.header p {
    color: #888;
    font-size: 1rem;
    margin-top: 5px;
}

.auto-save-status {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid #00ff88;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #00ff88;
    transition: all 0.3s ease;
    z-index: 1000;
}

.auto-save-status.saving {
    background: rgba(255, 165, 0, 0.1);
    border-color: #ffa500;
    color: #ffa500;
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    margin-bottom: 30px;
}

.left-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.controls {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid #333;
}

.control-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.control-group label {
    font-weight: 600;
    color: #00ff88;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

select, input {
    padding: 10px 15px;
    border: 1px solid #444;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #1a1a2e;
    color: #e0e6ed;
    font-family: inherit;
}

select:focus, input:focus {
    outline: none;
    border-color: #00ff88;
    box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.2);
}

.todo-panel {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #333;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.todo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.todo-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #00ff88;
    font-weight: bold;
    font-size: 1.2rem;
}

.auto-save-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #888;
}

.toggle-switch {
    position: relative;
    width: 40px;
    height: 20px;
    background: #333;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.toggle-switch.active {
    background: #00ff88;
}

.toggle-switch::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}

.toggle-switch.active::before {
    transform: translateX(20px);
}

.todo-input {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.todo-input input {
    flex: 1;
}

.add-btn {
    background: #00ff88;
    color: #0f0f23;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-family: inherit;
}

.add-btn:hover {
    background: #00cc6a;
    transform: translateY(-1px);
}

.import-export-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.import-section {
    margin-bottom: 15px;
}

.file-input-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-input-button {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.file-input-button:hover {
    background: #5a6fd8;
}

.todo-list {
    list-style: none;
    max-height: 400px;
    overflow-y: auto;
}

.todo-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border-left: 3px solid #00ff88;
    transition: all 0.3s ease;
}

.todo-item.completed {
    opacity: 0.6;
    border-left-color: #666;
    text-decoration: line-through;
}

.todo-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.todo-checkbox {
    accent-color: #00ff88;
    transform: scale(1.2);
}

.todo-text {
    flex: 1;
    font-size: 0.9rem;
}

.delete-btn {
    background: #ff4757;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.delete-btn:hover {
    opacity: 1;
}

.templates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
}

.template-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.template-card:hover {
    transform: translateY(-3px);
    border-color: #00ff88;
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.1);
}

.template-card h3 {
    color: #00ff88;
    margin-bottom: 15px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon {
    font-size: 1.2rem;
}

.template-content {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
    border-left: 3px solid #00ff88;
}

.field {
    margin-bottom: 15px;
}

.field-label {
    font-weight: 600;
    color: #ffa500;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.field-label::before {
    content: '> ';
    color: #00ff88;
}

.field-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #444;
    border-radius: 6px;
    font-size: 14px;
    resize: vertical;
    background: #1a1a2e;
    color: #e0e6ed;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.field-input:focus {
    border-color: #00ff88;
    outline: none;
}

textarea.field-input {
    min-height: 80px;
}

.btn {
    background: linear-gradient(45deg, #00ff88, #00cc6a);
    color: #0f0f23;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 15px;
    font-family: inherit;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 255, 136, 0.3);
}

.export-section {
    text-align: center;
    margin: 30px 0;
    padding: 25px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid #333;
}

.export-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    margin: 0 10px 10px 0;
    transition: all 0.3s ease;
    font-family: inherit;
}

.export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.import-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    margin: 0 10px 10px 0;
    transition: all 0.3s ease;
    font-family: inherit;
}

.import-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

.export-section h3 {
    color: #00ff88;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.import-export-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.import-section h4, .export-section-inner h4 {
    color: #ffa500;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.tips {
    background: rgba(255, 165, 0, 0.1);
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
    border: 1px solid #ffa500;
}

.tips h3 {
    color: #ffa500;
    margin-bottom: 15px;
}

.tips ul {
    list-style: none;
    padding-left: 0;
}

.tips li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
    color: #ccc;
}

.tips li:before {
    content: "//";
    position: absolute;
    left: 0;
    color: #00ff88;
    font-weight: bold;
}

.notification {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 6px;
    color: white;
    font-size: 0.9rem;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: linear-gradient(45deg, #00ff88, #00cc6a);
    color: #0f0f23;
}

.notification.error {
    background: linear-gradient(45deg, #ff4757, #c0392b);
}

.notification.info {
    background: linear-gradient(45deg, #667eea, #764ba2);
}

@media (max-width: 1200px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
    
    .todo-panel {
        position: relative;
        top: 0;
    }

    .import-export-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .templates {
        grid-template-columns: 1fr;
    }

    .auto-save-status {
        position: relative;
        top: 0;
        right: 0;
        margin-bottom: 20px;
    }
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 15px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #00cc6a);
    width: 0%;
    transition: width 0.3s ease;
}

.stats {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.8rem;
    color: #888;
}

.data-info {
    background: rgba(0, 255, 136, 0.1);
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 0.8rem;
    color: #888;
    border: 1px solid rgba(0, 255, 136, 0.2);
}