/* ========================================
   Inline CSS from symlink_tools.html
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.description {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.5;
}

.settings-info {
    background:rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    border-left: 4px solid #ff6b35;
}


.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.setting-item {
    display: flex;
    flex-direction: column;
}

.setting-item label {
    font-weight: bold;
    color: #ccc;
    margin-bottom: 5px;
}

.setting-item span {
    color: #fff;
    word-break: break-all;
}

.symlink-form {
    background:rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px;
}

.form-section {
    margin-bottom: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #ccc;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: #1a1a1a;
    color: #fff;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-group input[type="number"] {
    width: 100%;
}

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

.file-input-group input {
    flex: 1;
}

/* File Browser Modal Styles */
.file-browser-modal {
    width: 80%;
    max-width: 800px;
    height: 70vh;
    display: flex;
    flex-direction: column;
}

.file-browser-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: #1a1a1a;
}

.current-path {
    flex: 1;
    color: #ccc;
    font-family: monospace;
    word-break: break-all;
    margin-left: 10px;
}

.file-browser-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.file-list {
    flex: 1;
    overflow-y: auto;
    background: #1a1a1a;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #333;
    cursor: pointer;
    transition: background-color 0.2s;
}

.file-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.file-item.selected {
    background: #007bff;
    color: white;
}

.file-item-icon {
    margin-right: 10px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.file-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.file-item-name {
    font-weight: bold;
    margin-bottom: 2px;
}

.file-item-details {
    font-size: 12px;
    color: #888;
}

.file-item.selected .file-item-details {
    color: #ccc;
}

.file-browser-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px;
    border-top: 1px solid #444;
    background: #1a1a1a;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #888;
}

.error-message {
    color: #dc3545;
    padding: 10px;
    text-align: center;
}

/* Media file extensions */
.media-extensions {
    color: #28a745;
    font-weight: bold;
}

.btn-primary,
.btn-secondary {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    margin-left: 10px;
}

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

.validation-message {
    margin-top: 8px;
    padding: 8px;
    border-radius: 10px;
    font-size: 14px;
}

.validation-message.valid {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid #28a745;
}

.validation-message.invalid {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid #dc3545;
}

.preview-box {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
    font-family: monospace;
    white-space: pre-wrap;
    word-break: break-all;
}

.preview-box p {
    margin: 0;
    color: #ccc;
}

.preview-box .path {
    color: #28a745;
    font-weight: bold;
}

.preview-box .exists {
    color: #ffc107;
    font-style: italic;
}

.form-actions {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #444;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 10px;
    }
    
    .symlink-form {
        padding: 20px;
    }

    .btn-secondary {
        margin-left: 0;
    }
    .file-input-group {
        display: grid;
    }
}
