/* Domain List — Table Layout */

/* Table */
.dl-table-wrap { overflow-x: auto; }
.dl-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.dl-table thead th {
    padding: 10px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    background: var(--bg-card);
}

/* Main domain rows */
.dl-row {
    border-bottom: 1px solid rgba(42,46,58,.5);
    transition: background .1s;
}
.dl-row:hover { background: var(--bg-card-hover); }
.dl-row td {
    padding: 14px 16px;
    vertical-align: middle;
}

/* Expand arrow button */
.dl-expand-cell { width: 40px; text-align: center; }
.dl-expand-btn {
    width: 30px; height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    transition: all .15s;
}
.dl-expand-btn i { width: 14px; height: 14px; transition: transform .2s; }
.dl-expand-btn:hover { border-color: #fbbf24; color: #fbbf24; }
.dl-expand-btn.open { border-color: #fbbf24; color: #fbbf24; background: rgba(251,191,36,.08); }
.dl-expand-btn.open i { transform: rotate(90deg); }

/* Domain name with status dot */
.dl-domain-name {
    display: flex;
    align-items: center;
    gap: 10px;
}
.dl-status-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dl-status-dot.active { background: #4ade80; box-shadow: 0 0 6px rgba(74,222,128,.4); }
.dl-status-dot.inactive { background: var(--text-dim); }

.dl-url {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-weight: 600;
    font-size: 13px;
    color: var(--text);
}

/* Status cell */
.dl-status-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}
.dl-verified-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(34,197,94,.15);
    color: #4ade80;
    border: 1px solid rgba(34,197,94,.3);
}
.dl-pending-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(245,158,11,.12);
    color: #fbbf24;
    border: 1px solid rgba(245,158,11,.25);
    text-transform: capitalize;
}

/* Small icon button (refresh, etc.) */
.dl-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    border: none;
    border-radius: 5px;
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    transition: all .12s;
}
.dl-icon-btn i { width: 14px; height: 14px; }
.dl-icon-btn:hover { color: var(--text); background: var(--bg-card-hover); }

/* Date column */
.dl-date {
    color: var(--text-muted);
    white-space: nowrap;
    font-size: 13px;
}

/* Actions column */
.dl-actions {
    text-align: right;
    white-space: nowrap;
}
.dl-sub-count {
    font-size: 11px;
    color: var(--text-dim);
    background: rgba(99,102,241,.1);
    padding: 3px 10px;
    border-radius: 12px;
}

/* Subdomain expandable panel */
.dl-subs-row { background: transparent; }
.dl-subs-cell { padding: 0 !important; }
.dl-subs-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    background: rgba(0,0,0,.12);
}
.dl-subs-panel.open {
    max-height: 600px;
}
.dl-subs-title {
    padding: 12px 20px 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dim);
}
.dl-sub-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    margin: 0 16px;
    background: var(--bg-card);
    border-radius: var(--radius);
    margin-bottom: 8px;
    gap: 12px;
}
.dl-sub-url {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 13px;
    color: var(--text-muted);
}
.dl-sub-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.dl-activate-label {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 14px;
    border-radius: 5px;
    cursor: default;
}
.dl-activate-label.on { color: #4ade80; }
.dl-activate-label.off { color: var(--text-dim); }

/* Add Sub button */
.dl-add-sub-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: transparent;
    color: var(--text-dim);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s;
    margin-right: 6px;
}
.dl-add-sub-btn i { width: 12px; height: 12px; }
.dl-add-sub-btn:hover {
    border-color: #4ade80;
    color: #4ade80;
    background: rgba(74,222,128,.06);
}

/* Modal overlay */
.dl-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity .2s;
}
.dl-modal-overlay.open { opacity: 1; }

.dl-modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    width: 420px;
    max-width: 92vw;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
    transform: translateY(12px);
    transition: transform .2s;
}
.dl-modal-overlay.open .dl-modal { transform: translateY(0); }

.dl-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.dl-modal-header h4 {
    font-size: 15px;
    font-weight: 600;
}
.dl-modal-close {
    width: 28px; height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 5px;
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    transition: all .12s;
}
.dl-modal-close i { width: 16px; height: 16px; }
.dl-modal-close:hover { color: var(--text); background: var(--bg-card-hover); }

.dl-modal-body { padding: 20px; }
.dl-modal-info {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 14px;
}
.dl-modal-info strong { color: var(--text); }
.dl-modal-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.dl-modal-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.dl-modal-input-row .dl-modal-input { flex: 1; }
.dl-modal-rand-btn {
    width: 38px; height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    flex-shrink: 0;
    transition: all .15s;
}
.dl-modal-rand-btn i { width: 16px; height: 16px; }
.dl-modal-rand-btn:hover { border-color: #fbbf24; color: #fbbf24; background: rgba(251,191,36,.06); }

.dl-modal-input {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 13px;
    outline: none;
    transition: border-color .15s;
}
.dl-modal-input::placeholder { color: var(--text-dim); }
.dl-modal-input:focus { border-color: var(--border-focus); }
.dl-modal-error {
    font-size: 12px;
    color: #f87171;
    margin-top: 8px;
    min-height: 18px;
}

.dl-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 20px;
    border-top: 1px solid var(--border);
}
.dl-modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--border);
    transition: all .12s;
}
.dl-modal-btn i { width: 14px; height: 14px; }
.dl-modal-btn.cancel {
    background: transparent;
    color: var(--text-dim);
}
.dl-modal-btn.cancel:hover { color: var(--text); background: var(--bg-card-hover); }
.dl-modal-btn.submit {
    background: #4ade80;
    color: #0f1117;
    border-color: #4ade80;
    font-weight: 600;
}
.dl-modal-btn.submit:hover { background: #22c55e; border-color: #22c55e; }
.dl-modal-btn.submit:disabled { opacity: .5; cursor: not-allowed; }

.dl-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-dim);
    font-size: 13px;
}
