/* WebDAV Settings Dialog Styles */

.webdav-info-section {
    margin-bottom: 24px;
}

.webdav-info-section:last-child {
    margin-bottom: 0;
}

.webdav-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.webdav-info-grid {
    display: grid;
    gap: 12px;
}

.webdav-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.webdav-info-item label {
    font-size: 12px;
    color: #888;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.webdav-info-value {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f7f8fa;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 8px 12px;
}

.webdav-info-value code {
    flex: 1;
    font-family: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 13px;
    color: #333;
    word-break: break-all;
    user-select: all;
}

.webdav-copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #888;
    cursor: pointer;
    border-radius: 4px;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.webdav-copy-btn:hover {
    background: #e8e8e8;
    color: #333;
}

.webdav-hint {
    font-size: 12px;
    color: #888;
    margin: 8px 0 0 0;
}

/* Tabs */
.webdav-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 16px;
}

.webdav-tab {
    padding: 8px 16px;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: #888;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.15s ease;
}

.webdav-tab:hover {
    color: #333;
}

.webdav-tab.active {
    color: #1890ff;
    border-bottom-color: #1890ff;
}

.webdav-tab-panel {
    display: none;
}

.webdav-tab-panel.active {
    display: block;
}

.webdav-tab-panel ol {
    margin: 0;
    padding-left: 20px;
    font-size: 13px;
    line-height: 1.8;
    color: #555;
}

.webdav-tab-panel ol li {
    margin-bottom: 4px;
}

.webdav-tab-panel code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-family: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', monospace;
    color: #c7254e;
}

.webdav-tab-panel kbd {
    background: #f5f5f5;
    border: 1px solid #d0d0d0;
    border-bottom-width: 2px;
    border-radius: 3px;
    padding: 1px 6px;
    font-size: 12px;
    font-family: inherit;
}

.webdav-note {
    font-size: 12px;
    color: #999;
    margin: 12px 0 0 0;
    padding: 8px 12px;
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 4px;
}

.webdav-note code {
    background: #fff7cc;
    padding: 1px 4px;
    border-radius: 2px;
    font-size: 11px;
    color: #ad6800;
}

/* Create form */
.webdav-create-form {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.webdav-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s ease;
}

.webdav-input:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.webdav-input::placeholder {
    color: #bbb;
}

/* New password display */
.webdav-new-password-box {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 12px;
}

.webdav-new-password-label {
    font-size: 12px;
    color: #52c41a;
    font-weight: 500;
    margin: 0 0 8px 0;
}

.webdav-new-password-value {
    display: flex;
    align-items: center;
    gap: 8px;
}

.webdav-new-password-value code {
    flex: 1;
    font-family: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    user-select: all;
    word-break: break-all;
}

/* Passwords list */
.webdav-passwords-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.webdav-password-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.webdav-password-item:hover {
    border-color: #d9d9d9;
    background: #f5f5f5;
}

.webdav-password-info {
    flex: 1;
    min-width: 0;
}

.webdav-password-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.webdav-password-meta {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.webdav-delete-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #bbb;
    cursor: pointer;
    border-radius: 4px;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.webdav-delete-btn:hover {
    background: #fff1f0;
    color: #ff4d4f;
}

.webdav-empty-state {
    text-align: center;
    padding: 24px 16px;
    color: #bbb;
    font-size: 13px;
}
