.source-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
}

.hint {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.source-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all 0.3s ease;
}

.source-item:hover {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(74, 222, 128, 0.1);
}

.source-info {
    flex: 1;
}

.source-info h3 {
    margin: 0;
    margin-bottom: 0.5rem;
    color: #e1e1e3;
}

.url {
    color: rgba(255, 255, 255, 0.6);
    margin: 0.25rem 0;
    word-break: break-all;
    max-width: 90%;
}

.method-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    color: #e1e1e3;
}

.status-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    font-size: 0.8rem;
}

.status-badge.enabled {
    background-color: rgba(74, 222, 128, 0.15);
    color: #4ade80;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
}

.source-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.4rem 0.75rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.action-btn.toggle {
    background-color: rgba(255, 255, 255, 0.05);
    color: #e1e1e3;
}

.action-btn.toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.action-btn.delete {
    background-color: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.action-btn.delete:hover {
    background-color: rgba(239, 68, 68, 0.25);
}

.add-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(45deg, #4ade80, #3b82f6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
    cursor: pointer;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.add-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.4);
}

.dialog-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    backdrop-filter: blur(3px);
}

.dialog {
    width: 90%;
    max-width: 550px;
    background-color: #171721;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    color: #e1e1e3;
    max-height: 95vh;
    overflow-y: auto;
    z-index: 200;
}

.form-group {
    margin-bottom: 1.25rem;
}

.settings label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.settings input,
.settings select,
.settings textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e1e1e3;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}

.settings input:focus,
.settings select:focus,
.settings textarea:focus {
    border-color: rgba(74, 222, 128, 0.5);
    box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.2);
}

.settings input:hover,
.settings select:hover,
.settings textarea:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.settings textarea {
    min-height: 15vh;
    font-family: monospace;
    resize: vertical;
}

.settings select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23e1e1e3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 40px;
}

.settings option {
    background-color: #171721;
    color: #e1e1e3;
    padding: 0.75rem;
    font-size: 1rem;
}

option:hover, option:focus {
    background-color: rgba(74, 222, 128, 0.2);
}

.dialog-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
}

.dialog-actions button {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.settings button.cancel {
    background-color: rgba(255, 255, 255, 0.05);
    color: #e1e1e3;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.settings button.cancel:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.settings button.submit {
    background: linear-gradient(45deg, #4ade80, #3b82f6);
    color: white;
    border: none;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.2);
}

.settings button.submit:hover {
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.3);
}

.settings button.test {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(23, 255, 236, 0.2);
    color: #e1e1e3;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.settings button.test:hover {
    background-color: rgba(23, 255, 236, 0.1);
}
.settings button.test:active {
    transition: all 0s;
    background-color: rgba(5, 37, 35, 0.6);
}