* {
    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: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    text-align: center;
    padding: 40px 20px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 300;
}

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

.form-container {
    padding: 40px;
}

.section {
    margin-bottom: 40px;
}

.section h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3em;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.input-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 8px;
}

.input-group input[type="text"], .input-group input[type="url"] {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.delay-input {
    width: 50px !important;
    flex: none !important;
    padding: 6px 4px !important;
    text-align: center;
    font-size: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.delay-input::-webkit-outer-spin-button,
.delay-input::-webkit-inner-spin-button {
    -webkit-appearance: inner-spin-button;
    opacity: 1;
}

.delay-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}

.input-group input:focus {
    outline: none;
    border-color: #4facfe;
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
}



.browse-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.browse-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(79, 172, 254, 0.3);
}

.remove-btn {
    background: #ff4757;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.remove-btn:hover {
    background: #ff3742;
    transform: scale(1.1);
}

.add-btn {
    background: #2ed573;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.add-btn:hover {
    background: #26d466;
    transform: translateY(-2px);
}

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

.clear-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.clear-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* Quick Access Styles */
.quick-access-section {
    background: linear-gradient(135deg, #fff9e6, #fff3d3);
    border: 2px solid #ffd700;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.quick-access-section h3 {
    margin: 0 0 15px 0;
    color: #b8860b;
    text-align: center;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.pinned-category h4 {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
}

.pinned-item {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 5px;
    gap: 8px;
}

.pinned-path {
    flex: 1;
    font-size: 13px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.use-pinned-btn, .unpin-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 3px;
    font-size: 12px;
    transition: all 0.2s ease;
}

.use-pinned-btn {
    color: #4facfe;
    background: #f0f8ff;
}

.use-pinned-btn:hover {
    background: #4facfe;
    color: white;
}

.unpin-btn {
    color: #ff6b6b;
    background: #fff0f0;
}

.unpin-btn:hover {
    background: #ff6b6b;
    color: white;
}

.pin-btn {
    background: none;
    border: 1px solid #ddd;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 14px;
    color: #ffd700;
    transition: all 0.2s ease;
    min-width: 30px;
}

.pin-btn:hover {
    background: #ffd700;
    color: white;
    border-color: #ffd700;
}

/* Path tooltip */
.path-tooltip {
    position: fixed;
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    max-width: 500px;
    word-break: break-all;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid #555;
    animation: tooltipFadeIn 0.2s ease-out;
}

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

.pinned-path {
    cursor: default;
    transition: all 0.2s ease;
}

.pinned-path:hover {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 3px;
    transform: scale(1.02);
}

/* Input fields with long paths */
.input-group input:hover {
    background: #f8f9fa;
}

.generate-section {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

#generateBtn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

#generateBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.result-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin-top: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.result-section h3 {
    color: #2ed573;
    margin-bottom: 25px;
    font-size: 1.5em;
}

.copy-area {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
}

.copy-area h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2em;
}

#scriptCode {
    width: 100%;
    height: 200px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
    resize: vertical;
    margin-bottom: 15px;
}

.copy-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(79, 172, 254, 0.3);
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 25px 0;
    text-align: left;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    border-left: 4px solid #4facfe;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.step-number {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content strong {
    color: #333;
    font-size: 16px;
}

kbd {
    background: #f1f3f4;
    border: 1px solid #dadce0;
    border-radius: 3px;
    padding: 2px 6px;
    font-family: monospace;
    font-size: 12px;
}

.success-note {
    background: linear-gradient(135deg, #2ed573 0%, #17c0eb 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    margin-top: 25px;
    font-size: 16px;
}

.instructions {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: left;
    border-left: 4px solid #4facfe;
}

.instructions h4 {
    color: #333;
    margin-bottom: 10px;
}

.instructions ol {
    margin-left: 20px;
}

.instructions li {
    margin-bottom: 5px;
    color: #666;
}

.security-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    padding: 15px;
    margin-top: 15px;
    color: #856404;
    font-size: 14px;
}

@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 10px;
    }
    
    .form-container {
        padding: 20px;
    }
    
    header {
        padding: 30px 20px;
    }
    
    header h1 {
        font-size: 2em;
    }
}

/* Drag & Drop Styles */
.drag-over {
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%) !important;
    border: 2px dashed #4facfe !important;
    border-radius: 10px;
    transform: scale(1.02);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.3);
}

.section {
    transition: all 0.3s ease;
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    border: 2px dashed transparent;
    border-radius: 10px;
    transition: all 0.3s ease;
    pointer-events: none;
}

.section:hover::before {
    border-color: #e0e0e0;
}

/* Shortcut tip text */
.shortcut-tip {
    color: #666;
    font-size: 13px;
    font-style: italic;
    margin-top: 8px;
    opacity: 0.8;
    background: #f8f9fa;
    padding: 6px 10px;
    border-radius: 5px;
    border-left: 3px solid #4facfe;
}

/* Enhanced input styling for drag feedback */
.input-group input {
    transition: all 0.3s ease, background-color 0.5s ease;
}

.input-group input.drag-filled {
    background-color: #e8f5e8;
    border-color: #4caf50;
    animation: fillSuccess 0.5s ease;
}

@keyframes fillSuccess {
    0% {
        background-color: #ffffff;
        transform: scale(1);
    }
    50% {
        background-color: #c8e6c9;
        transform: scale(1.02);
    }
    100% {
        background-color: #e8f5e8;
        transform: scale(1);
    }
}
