* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a2a6c, #2c3e50, #4a235a);
    min-height: 100vh;
    display: flex;
    color: #333;
    background-attachment: fixed;
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.sidebar {
    width: 350px;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    overflow-y: auto;
    max-height: 100vh;
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.main-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    max-height: 100vh;
}

.logo {
    text-align: center;
    margin-bottom: 30px;
    color: #667eea;
    font-size: 24px;
    font-weight: bold;
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
}

input[type="password"],
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
    font-family: inherit;
}

input[type="password"]:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #0061ff, #60efff);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 97, 255, 0.3);
}

.btn-secondary {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.progress {
    display: none;
    margin: 20px 0;
    padding: 15px;
    background: rgba(97, 182, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(0, 97, 255, 0.2);
    backdrop-filter: blur(5px);
}

.progress-bar {
    height: 6px;
    background: rgba(0, 97, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0061ff, #60efff);
    width: 0%;
    transition: width 0.3s;
    animation: shimmer 1.5s infinite;
}

.tree-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    min-height: 500px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.file-card {
    margin-bottom: 20px;
    border: 1px solid rgba(97, 182, 255, 0.3);
    border-radius: 8px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s;
    position: relative;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.file-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 97, 255, 0.15);
    border-color: rgba(0, 97, 255, 0.5);
}

.file-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.file-name {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
}

.file-path {
    font-family: 'Courier New', monospace;
    color: #718096;
    font-size: 14px;
    margin-bottom: 10px;
    padding: 8px;
    background: rgba(226, 232, 240, 0.5);
    border-radius: 4px;
}

.file-description {
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 15px;
    white-space: pre-line;
}

.dependencies {
    background: rgba(0, 97, 255, 0.05);
    padding: 12px;
    border-radius: 6px;
    border-left: 3px solid #0061ff;
}

.dependencies-title {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.dependency-item {
    color: #4a5568;
    font-size: 14px;
    margin-bottom: 4px;
    padding-right: 20px;
    position: relative;
}

.dependency-item::before {
    content: "↳";
    position: absolute;
    right: 0;
    color: #667eea;
}

.copy-btn {
    background: linear-gradient(135deg, #0061ff, #60efff);
    color: white;
    border: none;
    padding: 6px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.copy-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 97, 255, 0.3);
}

.copy-btn.copied {
    background: #10b981;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
}

.empty-state-icon {
    font-size: 60px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.error-message {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: rgb(220, 38, 38);
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
    display: none;
    backdrop-filter: blur(5px);
}

.success-message {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: rgb(16, 185, 129);
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
    display: none;
    backdrop-filter: blur(5px);
}

.api-help {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #856404;
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 13px;
    display: none;
    backdrop-filter: blur(5px);
}

.api-help.show {
    display: block;
}