/* No-IP Page */
.noip-page {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.noip-page h1 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.noip-page h2 {
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.noip-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.noip-create-btn {
    font-size: 1rem;
}

/* Empty state */
.noip-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-color);
}

.noip-empty p {
    margin-bottom: 1rem;
}

/* Host cards */
.noip-host-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    margin-bottom: 1rem;
}

.noip-host-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.noip-hostname {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--accent);
}

.noip-host-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

@media (max-width: 600px) {
    .noip-host-details {
        grid-template-columns: 1fr;
    }
}

.noip-host-detail {
    font-size: 0.85rem;
}

.noip-label {
    color: var(--text-muted);
    margin-right: 0.3rem;
}

.noip-value {
    color: var(--text-secondary);
}

.noip-host-actions {
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

/* Buttons */
.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.btn-danger {
    background: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.25);
}

/* Modal overlay */
.noip-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.noip-modal {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-md);
}

.noip-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border-color);
}

.noip-modal-header h3 {
    margin: 0;
    color: var(--text-primary);
}

.noip-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 0.3rem;
    line-height: 1;
}

.noip-modal-close:hover {
    color: var(--text-primary);
    background: none;
    transform: none;
    box-shadow: none;
}

.noip-modal-body {
    padding: 1.2rem;
}

.noip-modal-footer {
    padding: 0.8rem 1.2rem;
    border-top: 1px solid var(--border-color);
    text-align: right;
}

/* Form elements */
.noip-form-group {
    margin-bottom: 1rem;
}

.noip-form-group label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.noip-form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

/* Hostname input with suffix */
.noip-hostname-input-wrap {
    display: flex;
    align-items: center;
}

.noip-hostname-input-wrap input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    margin-bottom: 0;
    flex: 1;
}

.noip-hostname-suffix {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-left: none;
    padding: 0.7rem 0.9rem;
    color: var(--text-muted);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Hostname availability status */
.noip-hostname-status {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    min-height: 1.2em;
}

.noip-status-good {
    color: #6fcf87;
}

.noip-status-bad {
    color: #f07178;
}

.noip-status-checking {
    color: var(--text-muted);
}

/* Password toggle */
.noip-password-toggle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.noip-password-toggle:hover {
    color: var(--accent);
}

.noip-password-toggle i {
    font-size: 0.7rem;
    margin-right: 0.3rem;
    transition: transform 0.2s;
}

/* Token display */
.noip-token-display {
    display: flex;
    gap: 0.5rem;
}

.noip-token-display input {
    flex: 1;
    margin-bottom: 0;
    font-family: monospace;
    font-size: 0.8rem;
}

/* Validation waiting screen */
.noip-validation-waiting {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.noip-validation-icon {
    color: var(--accent);
    margin-bottom: 1rem;
}

.noip-validation-waiting h3 {
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.noip-validation-waiting p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.noip-validation-status {
    color: var(--text-muted);
    margin-top: 1.5rem !important;
    font-size: 0.9rem;
}
