/**
 * ResellerClub Nameserver Management Styles
 * Frontend nameserver tab styling
 */

/* Nameserver tab container */
.nameserver-tab {
    padding: 20px;
}

/* Nameserver form styling */
.nameserver-form {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.nameserver-form h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

/* Nameserver input fields */
.nameserver-input-group {
    margin-bottom: 15px;
}

.nameserver-input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.nameserver-input-group input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.nameserver-input-group input[type="text"]:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

/* Nameserver list */
.nameserver-list {
    background: #f8f9fa;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.nameserver-list h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
}

.nameserver-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    margin-bottom: 10px;
}

.nameserver-item:last-child {
    margin-bottom: 0;
}

.nameserver-value {
    font-family: monospace;
    color: #333;
    font-size: 14px;
}

.nameserver-actions {
    display: flex;
    gap: 10px;
}

/* Button styling */
.nameserver-btn {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease;
}

.nameserver-btn:hover {
    background: #005a87;
}

.nameserver-btn.btn-danger {
    background: #dc3545;
}

.nameserver-btn.btn-danger:hover {
    background: #c82333;
}

.nameserver-btn.btn-success {
    background: #28a745;
}

.nameserver-btn.btn-success:hover {
    background: #218838;
}

.nameserver-btn.btn-secondary {
    background: #6c757d;
}

.nameserver-btn.btn-secondary:hover {
    background: #545b62;
}

/* Form actions */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e1e1e1;
}

.form-actions .btn-primary {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.form-actions .btn-primary:hover {
    background: #005a87;
}

.form-actions .btn-secondary {
    background: #6c757d;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.form-actions .btn-secondary:hover {
    background: #545b62;
}

/* Loading states */
.nameserver-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.nameserver-loading .spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error messages */
.nameserver-message {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: 500;
}

.nameserver-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.nameserver-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.nameserver-message.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Responsive design */
@media (max-width: 768px) {
    .nameserver-tab {
        padding: 15px;
    }
    
    .nameserver-form {
        padding: 15px;
    }
    
    .nameserver-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .nameserver-actions {
        justify-content: center;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions button {
        width: 100%;
    }
}
